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.

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

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

#include <br />

size_t strcspn(<br />

const char *s1, /* candidate string */<br />

const char *s2 /* reference string */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

This function calculates the length of the maximum initial segment of a string (s1)<br />

which consists entirely of characters not in another string (s2).<br />

s1 Points to the string to be examined.<br />

s2 Points to the reference string.<br />

This function returns the length of the segment.<br />

None.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 3-149<br />

3

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

Saved successfully!

Ooh no, something went wrong!