panic() cleanup.
[minix.git] / lib / libc / ansi / mbtowc.c
blob47c1483dbd80d4ce0c959f70f57b18e391004ceb
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 int
10 mbtowc(wchar_t *pwc, register const char *s, size_t n)
12 if (s == (const char *)NULL) return 0;
13 if (n <= 0) return 0;
14 if (pwc) *pwc = *s;
15 return (*s != 0);