Improved unicode fileio support.
[reactos.git] / reactos / lib / msvcrt / string / strlen.c
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/string.h>
3
4 #pragma function(strlen)
5
6 size_t strlen(const char* str)
7 {
8 const char* s;
9
10 if (str == 0)
11 return 0;
12 for (s = str; *s; ++s);
13 return s-str;
14 }
15