|
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 c
Length: 1643 (0x66b) Types: TextFile Names: »cstrings.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/quipu/cstrings.c«
/* cstrings.c - */ #ifndef lint static char *rcsid = "$Header: /f/osi/quipu/RCS/cstrings.c,v 7.0 89/11/23 22:16:59 mrose Rel $"; #endif /* * $Header: /f/osi/quipu/RCS/cstrings.c,v 7.0 89/11/23 22:16:59 mrose Rel $ * * * $Log: cstrings.c,v $ * Revision 7.0 89/11/23 22:16:59 mrose * Release 6.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ #include "psap.h" static char arg_error [1024]; static char arg_flag [100]; int chase_flag = 2; extern char * result_sequence; reset_arg () { arg_error [0] = 0; arg_flag [0] = 0; chase_flag = 2; if (result_sequence) free (result_sequence); result_sequence = NULLCP; } print_arg_error (opt) PS opt; { if (arg_error [0] != 0) { ps_printf (opt,"'%s' ambiguous, specify\n%s",arg_flag,arg_error); return (OK); } else return (NOTOK); } int test_arg (x, y, c) char *x; char *y; int c; { int count = 0; char * top, *topx; top = y; topx = x; if (*y == '-' ) count--; for (; (*y != 0) || (*x != 0); y++) { if (*x == 0) if (count >= c) return (1); else { (void) strcat (arg_error, top); (void) strcat (arg_error, "\n"); (void) strcpy (arg_flag,topx); return (0); } if (*x != *y) return (0); count++; x++; } if (count >= c) return (1); else { (void) strcat (arg_error, top); (void) strcat (arg_error, "\n"); (void) strcpy (arg_flag, topx); return (0); } }