06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

Name Description Page<br />

realloc Allocates memory. 3-123<br />

remove Removes a file. 3-125<br />

rename Renames a file. 3-126<br />

rewind Resets the file position indicator. 3-128<br />

scanf <strong>Read</strong>s formatted input from stdin. 3-130<br />

setbuf Changes a stream’s buffer. 3-132<br />

setlocale Obtains or changes the program’s locale. 3-134<br />

setvbuf Changes a stream’s buffering characteristics. 3-136<br />

sprintf Writes formatted output to a buffer. 3-138<br />

srand Sets the seed for the random number generator (rand.) 3-140<br />

sscanf <strong>Read</strong>s formatted input from a string. 3-141<br />

strcat Appends one string to another string. 3-143<br />

strchr Searches a string for a character. 3-144<br />

strcmp Compares two character strings. 3-145<br />

strcoll Compares two character strings. 3-146<br />

strcpy Copies one string to another string. 3-148<br />

strcspn Calculates the length of a substring. 3-149<br />

strerror Maps an error number to an error message string. 3-150<br />

strftime Places formatted time and date information into a string. 3-151<br />

strlen Computes string length. 3-154<br />

strncat Appends characters to a string. 3-155<br />

strncmp Compares characters in two strings. 3-157<br />

strncpy Copies characters from one string to another. 3-159<br />

strpbrk Searches a string for a character in a second string. 3-160<br />

A-24 <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!