306 return (
char *) input;
309 while (strchr(remove, *input) != NULL)
313 ptr = ((
char *) input) + strlen(input);
314 while (strchr(remove, *--ptr) != NULL)
317 len = strlen(input) - offset + 1;
318 rtn =
rtalloc(
sizeof(
char) * len);
320 rterror(
_(
"chartrim: Not enough memory"));
323 strncpy(rtn, input, len);
324 rtn[strlen(input) - offset] =
'\0';
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.