ReactOS 0.4.16-dev-927-g467dec4
strncnt.cpp File Reference
#include <string.h>
Include dependency graph for strncnt.cpp:

Go to the source code of this file.

Functions

size_t __cdecl __strncnt (char const *const string, size_t const count)
 

Function Documentation

◆ __strncnt()

size_t __cdecl __strncnt ( char const *const  string,
size_t const  count 
)

Definition at line 13 of file strncnt.cpp.

17{
18 char const* it = string;
19 size_t n = 0;
20
21 for (; *it && n != count; ++it, ++n) { }
22
23 return n;
24}
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLdouble n
Definition: glext.h:7729
char string[160]
Definition: util.h:11

Referenced by InternalCompareStringA(), and test___strncnt().