panic() cleanup.
[minix.git] / lib / libc / ansi / mblen.c
blob93b146a56300229b72236483a6f7908092a8db00
1 /*
2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
4 */
5 /* $Header$ */
7 #include <stdlib.h>
9 #define CHAR_SHIFT 8
11 int
12 mblen(const char *s, size_t n)
14 if (s == (const char *)NULL) return 0; /* no state dependent codings */
15 if (n <= 0) return 0;
16 return (*s != 0);