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

Function makeword_skip

cgiutil.c:325–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325char *makeword_skip(char *line, char stop, char skip) {
326 int x = 0,y,offset=0;
327 char *word = (char *) msSmallMalloc(sizeof(char) * (strlen(line) + 1));
328
329 for(x=0;((line[x]) && (line[x] == skip));x++);
330 offset = x;
331
332 for(x=offset;((line[x]) && (line[x] != stop));x++)
333 word[x-offset] = line[x];
334
335 word[x-offset] = '\0';
336 if(line[x]) ++x;
337 y=0;
338
339 while((line[y++] = line[x++]));
340 return word;
341}
342
343char *makeword(char *line, char stop) {
344 int x = 0,y;

Callers 1

loadParamsFunction · 0.85

Calls 1

msSmallMallocFunction · 0.85

Tested by

no test coverage detected