src/stdlib/SDL_string.c
changeset 1901 f1828a500391
parent 1895 c121d94672cb
child 1903 f132024010be
     1.1 --- a/src/stdlib/SDL_string.c	Wed Jul 12 09:25:17 2006 +0000
     1.2 +++ b/src/stdlib/SDL_string.c	Thu Jul 13 08:13:02 2006 +0000
     1.3 @@ -336,6 +336,18 @@
     1.4  }
     1.5  #endif
     1.6  
     1.7 +#ifndef HAVE_WCSLEN
     1.8 +size_t
     1.9 +SDL_wcslen(const wchar_t *string)
    1.10 +{
    1.11 +    size_t len = 0;
    1.12 +    while (*string++) {
    1.13 +        ++len;
    1.14 +    }
    1.15 +    return len;
    1.16 +}
    1.17 +#endif
    1.18 +
    1.19  #ifndef HAVE_STRLCPY
    1.20  size_t
    1.21  SDL_strlcpy(char *dst, const char *src, size_t maxlen)