ReactOS 0.4.15-dev-7918-g2a2556c
tcsnlen.h
Go to the documentation of this file.
1
2#include <stddef.h>
3#include <tchar.h>
4
5size_t __cdecl _tcsnlen(const _TCHAR * str, size_t count)
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}
15
16/* EOF */
#define __cdecl
Definition: accygwin.h:79
GLdouble s
Definition: gl.h:2039
GLuint GLuint GLsizei count
Definition: gl.h:1545
#define _tcsnlen
Definition: tchar.h:627
char _TCHAR
Definition: tchar.h:1392
const WCHAR * str