/* ... and at the end: */
end = strchr(start, '\0');
end--;
while ((*end == ' ' || *end == '\t' || *end == '\n' || *end == '\r')
/* ... and at the end: */
end = strchr(start, '\0');
end--;
while ((*end == ' ' || *end == '\t' || *end == '\n' || *end == '\r')