270 return (
char *) input;
273 while (isspace(*input))
277 ptr = ((
char *) input) + strlen(input);
278 while (isspace(*--ptr))
281 rtn =
rtalloc(
sizeof(
char) * (strlen(input) - offset + 1));
283 rterror(
_(
"trim: Not enough memory"));
286 strncpy(rtn, input, strlen(input) - offset);
287 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.