mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
9ea495ba33
svn path=/branches/header-work/; revision=45691
19 lines
225 B
C
19 lines
225 B
C
/* $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 */
|