aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/cardfile.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
commit7a69bbfb278952228c9aa1eca241e65fcdef425e (patch)
treee83b2ef47811e687a6c54035c9af6d4a2b7f14e1 /contrib/ncurses/test/cardfile.c
parent18259542b2f8fa7e3f76f4bb0dd37995dfd424aa (diff)
downloadsrc-7a69bbfb278952228c9aa1eca241e65fcdef425e.tar.gz
src-7a69bbfb278952228c9aa1eca241e65fcdef425e.zip
Import ncurses-5.2-20010512 onto the vendor branch
Obtained from: ftp://dickey.his.com/ncurses/
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=76726
Diffstat (limited to 'contrib/ncurses/test/cardfile.c')
-rw-r--r--contrib/ncurses/test/cardfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/ncurses/test/cardfile.c b/contrib/ncurses/test/cardfile.c
index 75d207764a93..a705d9d9eb62 100644
--- a/contrib/ncurses/test/cardfile.c
+++ b/contrib/ncurses/test/cardfile.c
@@ -29,7 +29,7 @@
/*
* Author: Thomas E. Dickey <dickey@clark.net> 1999
*
- * $Id: cardfile.c,v 1.5 2000/09/09 19:08:32 tom Exp $
+ * $Id: cardfile.c,v 1.6 2000/11/04 23:14:28 tom Exp $
*
* File format: text beginning in column 1 is a title; other text forms the content.
*/
@@ -75,7 +75,7 @@ strdup(char *s)
static const char *
skip(const char *buffer)
{
- while (isspace(*buffer))
+ while (isspace(CharOf(*buffer)))
buffer++;
return buffer;
}
@@ -84,7 +84,7 @@ static void
trim(char *buffer)
{
unsigned n = strlen(buffer);
- while (n-- && isspace(buffer[n]))
+ while (n-- && isspace(CharOf(buffer[n])))
buffer[n] = 0;
}
@@ -166,7 +166,7 @@ read_data(char *fname)
if ((fp = fopen(fname, "r")) != 0) {
while (fgets(buffer, sizeof(buffer), fp)) {
trim(buffer);
- if (isspace(*buffer)) {
+ if (isspace(CharOf(*buffer))) {
if (card == 0)
card = add_title("");
add_content(card, buffer);