98 if (isspace((
int) *line)) {
126 char* duplicate = NULL;
129 duplicate = strdup(
string);
130 if (duplicate == NULL) {
132 fprintf(stderr,
"StrStrdup: Call to malloc() returned null - out of swap space?");
178 if (dst && (dstlen > 0)) {
180 (void) strlcpy(dst, src, dstlen);
197 length = strlen(dst);
198 remain = dstlen - length;
234 int textlen = strlen(text);
235 while (-- textlen >= 0) {
236 if (! isspace((
int) text[textlen])) {
237 text[textlen + 1] =
'\0';
272 while (*text && isspace((
int) *text)) {
328 *ptr = tolower((
int) *ptr);
333 return (
size_t) (ptr - string);
358 *ptr = toupper((
int) *ptr);
363 return (
size_t) (ptr - string);
403 for (i = 0; i < len; ++i) {
404 if (
string[i] == search) {
450 in_length = strlen(
string);
458 while (first_char < in_length) {
459 if (! isspace((
int)
string[first_char])) {
465 if (first_char < in_length) {
472 last_char = in_length - 1;
473 while (isspace((
int)
string[last_char])) {
479 length = last_char - first_char + 1;