mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:46:06 +00:00
- Sync some changes in strings from libcntpr.
- Move string implementation (in "header" files) into /string dir. - Copy over libcntpr-specific implementations into _nt.c files (for now, later they could do with a define). - libcntpr's is now almost fully syncronized and could be merged into the tree except for "except" directory. svn path=/trunk/; revision=30283
This commit is contained in:
parent
c8a87ec7b8
commit
375959c206
46 changed files with 502 additions and 246 deletions
18
reactos/lib/sdk/crt/string/tcslen.h
Normal file
18
reactos/lib/sdk/crt/string/tcslen.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <tchar.h>
|
||||
|
||||
size_t _tcslen(const _TCHAR * str)
|
||||
{
|
||||
const _TCHAR * s;
|
||||
|
||||
if(str == 0) return 0;
|
||||
|
||||
for(s = str; *s; ++ s);
|
||||
|
||||
return s - str;
|
||||
}
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue