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.

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

strspn Calculates specified string length.<br />

#include <br />

size_t strspn(<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 />

The strspn() function computes the length of the maximum initial segment of a<br />

string (s1) that consists entirely of characters from 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 />

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