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.

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

mblen Determines the number of bytes in a multibyte character.<br />

#include <br />

int mblen (<br />

const char *s, /* character */<br />

size_t n /* size of character */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

If s is not a null pointer, the mblen() function determines the number of bytes<br />

contained in the multibyte character pointed to by s. Except that the shift state of<br />

the mbtowc() function is not affected, it is equivalent to:<br />

mbtowc((wchar_t *)0, s, n);<br />

s Points to the character to be examined.<br />

n Specifies the size of s.<br />

If s is a null pointer, this function returns a nonzero or zero value, if multibyte<br />

character encodings, respectively, do or do not have state-dependent encodings. If s<br />

is not a null pointer, this function either returns 0 (if s points to the null character),<br />

or returns the number of bytes that are contained in the multibyte character (if the<br />

next n or fewer bytes form a valid multibyte character), or returns -1 (if they do not<br />

form a valid multibyte character).<br />

None.<br />

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