home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3660 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  730 b 

  1. Path: porky.apl.s.shuttle.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. From: "Andreas Voegele" <andreas@porky.apl.s.shuttle.de>
  4. Date: Thu, 22 Feb 1996 12:53:25 +0100
  5. Subject: Get file handle from file descriptor? (SAS/C)
  6. Message-ID: <67478443@porky.apl.s.shuttle.de>
  7. Organization: The Abyss, Stuttgart, Germany
  8.  
  9. How can I get the AmigaDOS file handle that is associated with a file
  10. descriptor? I need to Examine() a file opened with open().
  11.  
  12. DICE provides the function fdtofh(), but I haven't found
  13. an equivalent function in the SAS/C environment.
  14.  
  15. BTW, why does open("plainfile", 0) return 0 when using SAS/C?
  16. Aren't the descriptors 0, 1 and 2 reserved for standard input,
  17. standard output and standard error?
  18.  
  19. Bye, Andy
  20.