char *strnchr(const char *s, size_t count, int c)
{
for (; count-- && *s != '\0'; ++s)
char *strnchr(const char *s, size_t count, int c)
{
for (; count-- && *s != '\0'; ++s)
/**
* strcspn - Calculate the length of the initial substring of @s which does
* not contain letters in @reject
/**
* strcspn - Calculate the length of the initial substring of @s which does
* not contain letters in @reject
* of that name. In fact, it was stolen from glibc2 and de-fancy-fied.
* Same semantics, slimmer shape. ;)
*/
* of that name. In fact, it was stolen from glibc2 and de-fancy-fied.
* Same semantics, slimmer shape. ;)
*/
* You should not use this function to access IO space, use memcpy_toio()
* or memcpy_fromio() instead.
*/
* You should not use this function to access IO space, use memcpy_toio()
* or memcpy_fromio() instead.
*/
- for( su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)
+ for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)
* returns the address of the first occurrence of @c, or 1 byte past
* the area if @c is not found
*/
* returns the address of the first occurrence of @c, or 1 byte past
* the area if @c is not found
*/