|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T p
Length: 644 (0x284) Types: TextFile Names: »prefix.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z« └─⟦e5a54fb17⟧ └─⟦this⟧ »pp-5.0/Lib/util/prefix.c«
/* prefix: Determine if str1 is the prefix of str2 */ # ifndef lint static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Lib/util/RCS/prefix.c,v 5.0 90/09/20 16:17:45 pp Exp Locker: pp $"; # endif /* * $Header: /cs/research/pp/hubris/pp-beta/Lib/util/RCS/prefix.c,v 5.0 90/09/20 16:17:45 pp Exp Locker: pp $ * * $Log: prefix.c,v $ * Revision 5.0 90/09/20 16:17:45 pp * rcsforce : 5.0 public release * */ #include "util.h" extern char chrcnv[]; int prefix(str1, str2) register char *str1; register char *str2; { while(*str1) if(chrcnv[*str1++] != chrcnv[*str2++]) return (FALSE); return (TRUE); }