Problems with cxref program: stpchr(), iscsymf(), iscsym()
jpn at teddy.UUCP
jpn at teddy.UUCP
Fri Nov 8 03:54:03 AEST 1985
>Here are descriptions of the Lattice supplied functions:
>
>char *s;
>char c;
>
>p = stpchr(s,c)
Replace with index(s,c) with V7 derived libraries. Replace with
strchr(s,c) on System III/V derived libraries. "#define stpchr strchr"
works great. By the way, Lattice 2.15 has strchr in the library.
>iscsymf(c) is a macro
#define iscsymf(_c) (isalpha(_c) || _c == '_')
>iscsym(c) is a macro
#define iscsymf(_c) (isalnum(_c) || _c == '_')
Don't forget to #include <ctype.h>
More information about the Comp.sources.bugs
mailing list