Changeset 10842 for trunk/Ohana/src/libohana
- Timestamp:
- Dec 27, 2006, 9:13:01 AM (20 years ago)
- Location:
- trunk/Ohana/src/libohana
- Files:
-
- 2 edited
-
include/ohana.h (modified) (1 diff)
-
src/string.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana.h
r10073 r10842 124 124 int remove_argument PROTO((int N, int *argc, char **argv)); 125 125 void uppercase PROTO((char *string)); 126 char *strip_version PROTO((char *input)); 126 127 char *strsubs PROTO((char *string, char *match, char *with)); 127 128 -
trunk/Ohana/src/libohana/src/string.c
r10306 r10842 218 218 219 219 } 220 221 /* expect a line of the form "$Name: not supported by cvs2svn $", strip out contents */ 222 char *strip_version (char *input) { 223 224 char *p, *q; 225 226 p = strstr (input, "$Name:"); 227 if (p == NULL) return (strcreate ("NONE")); 228 229 q = strcreate (input + 6); 230 p = strrchr (q, '$'); 231 if (p != NULL) *p = 0; 232 stripwhite (q); 233 if (*q == 0) { 234 free (q); 235 q = strcreate ("NONE"); 236 } 237 238 return (q); 239 }
Note:
See TracChangeset
for help on using the changeset viewer.
