06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

All <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> Tables of <strong>System</strong> <strong>Calls</strong><br />

TABLE A-1 All <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> (Continued)<br />

Name Component Description Page<br />

fclose pREPC+ Closes a stream. 3-30<br />

feof pREPC+ Tests a stream’s end-of-file indicator. 3-32<br />

ferror pREPC+ Tests a stream’s error indicator. 3-33<br />

fflush pREPC+ Flushes the buffer associated with an open<br />

stream.<br />

3-34<br />

fgetc pREPC+ Gets a character from a stream. 3-35<br />

fgetpos pREPC+ Gets the current file position indicator for<br />

fsetpos.<br />

3-36<br />

fgets pREPC+ Gets a string from a stream. 3-37<br />

fopen pREPC+ Opens a file. 3-39<br />

fprintf pREPC+ Prints formatted output to a stream. 3-43<br />

fputc pREPC+ Writes a character to a stream. 3-48<br />

fputs pREPC+ Writes a string to a stream. 3-50<br />

fread pREPC+ <strong>Read</strong>s from a stream. 3-51<br />

free pREPC+ Deallocates memory. 3-53<br />

freopen pREPC+ Reopens a file. 3-54<br />

fscanf pREPC+ <strong>Read</strong>s formatted input from a stream. 3-56<br />

fseek pREPC+ Sets the file position indicator. 3-61<br />

fsetpos pREPC+ Sets file position by using the fgetpos result.<br />

fstat_f pHILE+ Obtains the status of a file specified by its<br />

file identifier.<br />

fstat_vfs pHILE+ Obtains statistics about a mounted volume<br />

specified by a file identifier.<br />

3-63<br />

2-35<br />

2-39<br />

ftell pREPC+ Gets the file position indicator. 3-65<br />

ftruncate_f pHILE+ Changes the size of a file specified by its file<br />

identifier.<br />

2-43<br />

A-4 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!