303 return (
char *) input;
306 while (strchr(remove, *input) != NULL)
310 ptr = ((
char *) input) + strlen(input);
311 while (strchr(remove, *--ptr) != NULL)
314 len = strlen(input) - offset + 1;
315 rtn =
rtalloc(
sizeof(
char) * len);
317 rterror(
_(
"chartrim: Not enough memory"));
320 strncpy(rtn, input, len);
321 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.