diff options
author | Bruno Haible <bruno@clisp.org> | 2002-11-14 15:00:41 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:08:51 +0200 |
commit | 741bd98a238c11918aadca01170c3e012f435216 (patch) | |
tree | e02044fbd2f14e93be9224eb31c6b94b62ff92f0 /lib/mbswidth.c | |
parent | 9db2f21d62bd228d353c8d08dc5baa8ccdf136c2 (diff) | |
download | external_gettext-741bd98a238c11918aadca01170c3e012f435216.zip external_gettext-741bd98a238c11918aadca01170c3e012f435216.tar.gz external_gettext-741bd98a238c11918aadca01170c3e012f435216.tar.bz2 |
Switch from K&R C to ANSI C.
Diffstat (limited to 'lib/mbswidth.c')
-rw-r--r-- | lib/mbswidth.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/mbswidth.c b/lib/mbswidth.c index 9d5ebe7..a2ef5b3 100644 --- a/lib/mbswidth.c +++ b/lib/mbswidth.c @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a string. - Copyright (C) 2000-2001 Free Software Foundation, Inc. + Copyright (C) 2000-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -87,9 +87,7 @@ int wcwidth (); With flags = MBSW_REJECT_INVALID | MBSW_REJECT_UNPRINTABLE, this is the multibyte analogon of the wcswidth function. */ int -mbswidth (string, flags) - const char *string; - int flags; +mbswidth (const char *string, int flags) { return mbsnwidth (string, strlen (string), flags); } @@ -99,10 +97,7 @@ mbswidth (string, flags) non-printable character occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned. */ int -mbsnwidth (string, nbytes, flags) - const char *string; - size_t nbytes; - int flags; +mbsnwidth (const char *string, size_t nbytes, int flags) { const char *p = string; const char *plimit = p + nbytes; |