Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site teddy.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!teddy!jpn From: jpn@teddy.UUCP Newsgroups: net.sources.bugs Subject: Re: Problems with cxref program: stpchr(), iscsymf(), iscsym() Message-ID: <1608@teddy.UUCP> Date: Thu, 7-Nov-85 12:54:03 EST Article-I.D.: teddy.1608 Posted: Thu Nov 7 12:54:03 1985 Date-Received: Sun, 10-Nov-85 05:54:43 EST References: <524@puff.UUCP> Reply-To: jpn@teddy.UUCP (John P. Nelson) Distribution: net Organization: GenRad, Inc., Concord, Mass. Lines: 20 >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