Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing file pointers

Status
Not open for further replies.

tllintx

Programmer
Aug 7, 2000
10
US
If you open a file within a particular task and pass the file pointer to another task, can the second task read from the file pointer? or is access limited to the task that opens the file?

Thanks!
 
tlintx,

If you create the second process using fork() it will inherit all open files. Don't know another way to do it though.

Have you asked in the C Programming forum?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top