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.

memchr pREPC+ <strong>System</strong> <strong>Calls</strong><br />

memchr Searches memory for a character.<br />

#include <br />

void *memchr(<br />

const void *s, /* target buffer */<br />

int c, /* character key */<br />

size_t n /* search length */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

This function searches for the first occurrence of the character c (converted to an<br />

unsigned char) in the first n characters of the object pointed to by s.<br />

s Points to the buffer to be searched.<br />

c Specifies the character to be searched for.<br />

n Specifies the number of characters to search through.<br />

This function returns a pointer to the located character, or a null pointer if the<br />

character is not found.<br />

None.<br />

3-102 <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!