reactos/lib/sdk/crt/string/tcsnlen.h

19 lines
225 B
C
Raw Normal View History

/* $Id$
*/
#include <stddef.h>
#include <tchar.h>
size_t _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 */