301 return (
char *) input;
304 while (strchr(
remove, *input) != NULL)
308 ptr = ((
char *) input) + strlen(input);
309 while (strchr(
remove, *--ptr) != NULL)
312 rtn =
rtalloc(
sizeof(
char) * (strlen(input) - offset + 1));
314 rterror(
_(
"chartrim: Not enough memory"));
317 strncpy(rtn, input, strlen(input) - offset);
318 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.