Concept Framework 1.0 documentation Contents | Index

standard.C.string.memchr

Name Version Deprecated
memchr version 1.0 no

Prototype:
string memchr(string buf, string c, integer count)

Parameters:
buf      the string buffer
c      Character to look for
count      Number of characters to check.

Description:
Finds characters in a buffer. Looks for the first occurrence of c in the first count bytes of buf. It stops when it finds c or when it has checked the first count bytes.

Returns:
If successful, returns a pointer to the first location of c in buf. Otherwise it returns NULL.

Documented by Eduard Suica, generation time: Thu Oct 15 20:02:04 2009 GMT(c)2009 RadGs Software