diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-27 10:41:21 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-27 10:41:21 +0000 |
commit | dd9e331ae288a8ca739bb13755c0849aa4793249 (patch) | |
tree | fac23295d346506f8efe21b089d1944170c3db0c /lib/libc/locale/mblen.c | |
parent | c9805dcdfb391e619bc3f9a1ae0dcde7c19b3711 (diff) | |
download | FreeBSD-src-dd9e331ae288a8ca739bb13755c0849aa4793249.zip FreeBSD-src-dd9e331ae288a8ca739bb13755c0849aa4793249.tar.gz |
Style sweep.
Diffstat (limited to 'lib/libc/locale/mblen.c')
-rw-r--r-- | lib/libc/locale/mblen.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/locale/mblen.c b/lib/libc/locale/mblen.c index b5b92d1..a54e051 100644 --- a/lib/libc/locale/mblen.c +++ b/lib/libc/locale/mblen.c @@ -38,19 +38,18 @@ __FBSDID("$FreeBSD$"); #include <errno.h> -#include <stdlib.h> #include <stddef.h> +#include <stdlib.h> #include <rune.h> int -mblen(s, n) - const char *s; - size_t n; +mblen(const char *s, size_t n) { - char const *e; + const char *e; - if (s == 0 || *s == 0) - return (0); /* No support for state dependent encodings. */ + if (s == NULL || *s == '\0') + /* No support for state dependent encodings. */ + return (0); if (sgetrune(s, n, &e) == _INVALID_RUNE) { errno = EILSEQ; |