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.

Tables of <strong>System</strong> <strong>Calls</strong> pREPC+ <strong>System</strong> <strong>Calls</strong><br />

TABLE A-4 pREPC+ <strong>System</strong> <strong>Calls</strong> (Continued)<br />

Name Description Page<br />

asctime_r (Reentrant) Converts the broken-down time to a string. 3-6<br />

assert Verifies that a program is operating correctly. 3-8<br />

atof Converts a string to a double. 3-9<br />

atoi Converts a string to an integer. 3-11<br />

atol Converts a string to a long integer. 3-13<br />

bsearch Searches an array. 3-15<br />

calloc Allocates memory. 3-17<br />

clearerr Clears a stream’s error indicators. 3-19<br />

ctime Converts the calendar time to a string. 3-20<br />

ctime_r (Reentrant) Converts the calendar time to a string. 3-22<br />

difftime Computes the difference between two calendar times. 3-24<br />

div Performs a division operation on two specified integers. 3-25<br />

errno The error number returned by the last failing system call. 3-27<br />

exit Terminates a task. 3-28<br />

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

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

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

fflush Flushes the buffer associated with an open stream. 3-34<br />

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

fgetpos Gets the current file position indicator for fsetpos. 3-36<br />

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

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

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

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

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> A-21<br />

A

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

Saved successfully!

Ooh no, something went wrong!