MCPcopy Create free account
hub / github.com/Entware/Entware / strip

Function strip

scripts/config/conf.c:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static void strip(char *str)
61{
62 char *p = str;
63 int l;
64
65 while ((isspace(*p)))
66 p++;
67 l = strlen(p);
68 if (p != str)
69 memmove(str, p, l + 1);
70 if (!l)
71 return;
72 p = str + l - 1;
73 while ((isspace(*p)))
74 *p-- = 0;
75}
76
77/* Helper function to facilitate fgets() by Jean Sacren. */
78static void xfgets(char *str, int size, FILE *in)

Callers 2

conf_symFunction · 0.85
conf_choiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected