home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / sources / nix / extra / fdtofh.c < prev    next >
Encoding:
Text File  |  1995-03-23  |  372 b   |  15 lines

  1. /*
  2.  * Get the AmigaDOS FileHandle from the filedescriptor.
  3.  * Be careful when mixing both kinds of I/O (flush() between changing).
  4.  *
  5.  * DICE has such a function SAS has not.
  6.  * It's not ANSI but it's encapsulated and may be useful - so why not :-).
  7.  * 
  8.  */
  9. unsigned long *__stdfiledes;
  10.  
  11. unsigned long fdtofh(int filedescriptor)
  12. {
  13.   return __stdfiledes[filedescriptor];
  14. }
  15.