summaryrefslogtreecommitdiff
path: root/lib/mbswidth.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-17 20:42:12 +0000
committerJim Meyering <jim@meyering.net>2000-07-17 20:42:12 +0000
commitd0192db8ac75534a415e544b54a506d5ff521e0d (patch)
treeb4d271e226dadc51a7c68ad333f3784633df54c7 /lib/mbswidth.h
parent365bcc959c87c858c51701a931d5ad0a9516ee82 (diff)
downloadcoreutils-d0192db8ac75534a415e544b54a506d5ff521e0d.tar.xz
from Bruno Haible.
Diffstat (limited to 'lib/mbswidth.h')
-rw-r--r--lib/mbswidth.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/mbswidth.h b/lib/mbswidth.h
new file mode 100644
index 000000000..1ef47d622
--- /dev/null
+++ b/lib/mbswidth.h
@@ -0,0 +1,26 @@
+/* Determine the number of screen columns needed for a string.
+ Copyright (C) 2000 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
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#ifndef PARAMS
+# if defined PROTOTYPES || defined __STDC__
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
+#endif
+
+extern int mbswidth PARAMS ((const char *string));