Converting from "file pointer" (fp) to "file description" (fd)

Converting from "file pointer" (fp) to "file description" (fd)

Post by Sagi Linshi » Sat, 01 Dec 2001 01:35:55



Hello all!
I need a help how to convert from "file pointer" that usable for fseek
function to "file descriptor" that usable for ioctl function.

Thank you.
Sagi.

 
 
 

Converting from "file pointer" (fp) to "file description" (fd)

Post by Donald McLachl » Sat, 01 Dec 2001 02:56:43


fd = fileno(fp);

--

Communications Research Centre / RNS    Tel     (613) 998-2845
3701 Carling Ave.,                      Fax     (613) 998-9648
Ottawa, Ontario
K2H 8S2
Canada