MCPcopy Index your code
hub / github.com/MapServer/MapServer / makeword

Function makeword

cgiutil.c:343–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343char *makeword(char *line, char stop) {
344 int x = 0,y;
345 char *word = (char *) msSmallMalloc(sizeof(char) * (strlen(line) + 1));
346
347 for(x=0;((line[x]) && (line[x] != stop));x++)
348 word[x] = line[x];
349
350 word[x] = '\0';
351 if(line[x]) ++x;
352 y=0;
353
354 while((line[y++] = line[x++]));
355 return word;
356}
357
358char *fmakeword(FILE *f, char stop, int *cl) {
359 int wsize;

Callers 1

loadParamsFunction · 0.85

Calls 1

msSmallMallocFunction · 0.85

Tested by

no test coverage detected