mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 04:11:30 +00:00
17 lines
221 B
C
17 lines
221 B
C
|
|
#include <stddef.h>
|
|
#include <tchar.h>
|
|
|
|
size_t __cdecl _tcsnlen(const _TCHAR * str, size_t count)
|
|
{
|
|
const _TCHAR * s;
|
|
|
|
if(str == 0) return 0;
|
|
|
|
for(s = str; *s && count; ++ s, -- count);
|
|
|
|
return s - str;
|
|
}
|
|
|
|
/* EOF */
|