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> strcmp<br />

strcmp Compares two character strings.<br />

#include <br />

int strcmp(<br />

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

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

This function compares two character strings and returns a value that reflects<br />

whether the first string (s1) is greater than, equal to, or less than the second string<br />

(s2).<br />

s1 Points to the first string.<br />

s2 Points to the second string.<br />

This function returns a value greater than, equal to, or less than 0, depending on<br />

whether the string pointed to by s1 is greater than, equal to, or less than the string<br />

pointed to by s2.<br />

None.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!