mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 08:43:28 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
16 lines
213 B
C
16 lines
213 B
C
|
|
#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 */
|