ReactOS 0.4.15-dev-8241-g63935f8
tcsnlen.h File Reference
#include <stddef.h>
#include <tchar.h>
Include dependency graph for tcsnlen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t __cdecl _tcsnlen (const _TCHAR *str, size_t count)
 

Function Documentation

◆ _tcsnlen()

size_t __cdecl _tcsnlen ( const _TCHAR str,
size_t  count 
)

Definition at line 5 of file tcsnlen.h.

6{
7 const _TCHAR * s;
8
9 if(str == 0) return 0;
10
11 for(s = str; *s && count; ++ s, -- count);
12
13 return s - str;
14}
GLdouble s
Definition: gl.h:2039
GLuint GLuint GLsizei count
Definition: gl.h:1545
char _TCHAR
Definition: tchar.h:1392
const WCHAR * str