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.

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

strcoll Compares two character strings.<br />

#include <br />

int strcoll (<br />

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

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The strcoll() function compares the string pointed to by s1 to the string pointed<br />

to by s2. The comparison is performed relative to the current locale. (You can<br />

specify the locale by using the setlocale() function. See setlocale() on<br />

page 3-134.)<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 />

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