-/* $Id: strings.c,v 1.18 2009/02/24 14:52:55 kristaps Exp $ */
+/* $Id: strings.c,v 1.19 2009/02/25 12:32:50 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
case ('e'):
return(2);
case ('('):
- if (0 == *++p || ! isgraph(*p))
+ if (0 == *++p || ! isgraph((int)*p))
return(0);
- if (0 == *++p || ! isgraph(*p))
+ if (0 == *++p || ! isgraph((int)*p))
return(0);
return(4);
case ('['):
}
for (c = 3, p++; *p && ']' != *p; p++, c++)
- if ( ! isgraph(*p))
+ if ( ! isgraph((int)*p))
break;
return(*p == ']' ? c : 0);
(void)memset(&tm, 0, sizeof(struct tm));
- if (xstrcmp(p, "$Mdocdate: February 24 2009 $"))
+ if (xstrcmp(p, "$Mdocdate: February 25 2009 $"))
return(time(NULL));
- if ((pp = strptime(p, "$Mdocdate: February 24 2009 $", &tm)) && 0 == *pp)
+ if ((pp = strptime(p, "$Mdocdate: February 25 2009 $", &tm)) && 0 == *pp)
return(mktime(&tm));
/* XXX - this matches "June 1999", which is wrong. */
if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)