]> mj.ucw.cz Git - libucw.git/blob - charset/strlen.c
Better avoid the brain-dead encoding " " as "+" when generating URL's.
[libucw.git] / charset / strlen.c
1 /*
2  *      The UniCode Library -- String Length
3  *
4  *      (c) 1997 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #include "lib/lib.h"
11 #include "charset/unicode.h"
12
13 uns
14 Ustrlen(word *w)
15 {
16   word *z = w;
17
18   while (*z)
19     z++;
20   return z - w;
21 }