Changeset 10842 for trunk/Ohana/src/opihi/lib.shell/version.c
- Timestamp:
- Dec 27, 2006, 9:13:01 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/version.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/version.c
r8653 r10842 7 7 return (name); 8 8 } 9 10 /* expect a line of the form "$Name: not supported by cvs2svn $", strip out contents */11 char *strip_version (char *input) {12 13 char *p, *q;14 15 p = strstr (input, "$Name:");16 if (p == NULL) return (strcreate ("NONE"));17 18 q = strcreate (input + 6);19 p = strrchr (q, '$');20 if (p != NULL) *p = 0;21 stripwhite (q);22 if (*q == 0) {23 free (q);24 q = strcreate ("NONE");25 }26 27 return (q);28 }
Note:
See TracChangeset
for help on using the changeset viewer.
