head 1.5; access; symbols; locks; strict; comment @ * @; 1.5 date 97.10.05.20.54.02; author alexis; state Exp; branches; next 1.4; 1.4 date 97.10.05.20.01.28; author alexis; state Exp; branches; next 1.3; 1.3 date 97.10.05.19.49.40; author alexis; state Exp; branches; next 1.2; 1.2 date 97.10.05.15.03.22; author alexis; state Exp; branches; next 1.1; 1.1 date 97.10.04.13.26.49; author alexis; state Exp; branches; next ; desc @@ 1.5 log @*** empty log message *** @ text @#include /* for strdup(), strtok */ #include /* for sprintf() */ #include "version.h" static char *version_c_rcs_id = "$Id: version.c,v 1.4 1997/10/05 20:01:28 alexis Exp alexis $"; #define PATCHLEVEL_TXT "PATCHLEVEL_MARKER" static char *mystrtok(char *, char *); char *version_init( char *str) { static char version_tmpbuf[64]; char *cp; int spc, i, verno_stt_idx, verno_end_idx; /* if the marker has above has been substituted, then this is a release */ if (strncmp(PATCHLEVEL_TXT, "PAT", 3) != 0) sprintf(version_tmpbuf, "%s (release)", PATCHLEVEL_TXT); /* if the RCS id remains unsubstituted then it's never been checked in */ else if (str[3] == '$') sprintf(version_tmpbuf, "1.0 (problem)"); else { for (i=0,spc=0; i