|
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 - download
Length: 352 (0x160) Types: TextFile Names: »checkargv.c«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen └─⟦this⟧ »cph85dist/stat/src/checkargv.c«
/* LINTLIBRARY */ #include "unixstat.h" FUN(checkargv,check basename of program,5.0,1985) /* returns true if the first arg ends the second */ checkargv (target, argv0) /* true if argv0 ends in target */ char *target, *argv0; { int offset = strlen (argv0) - strlen (target); if (offset < 0) return (0); return (!strcmp (target, argv0+offset)); }