100 if (isspace((
int) *line)) {
128 char* duplicate = NULL;
131 duplicate = strdup(
string);
132 if (duplicate == NULL) {
134 fprintf(stderr,
"StrStrdup: Call to malloc() returned null - out of swap space?");
180 if (dst && (dstlen > 0)) {
182 (void) strlcpy(dst, src, dstlen);
199 length = strlen(dst);
200 remain = dstlen - length;
236 int textlen = strlen(text);
237 while (-- textlen >= 0) {
238 if (! isspace((
int) text[textlen])) {
239 text[textlen + 1] =
'\0';
274 while (*text && isspace((
int) *text)) {
330 *ptr = tolower((
int) *ptr);
335 return (
size_t) (ptr - string);
360 *ptr = toupper((
int) *ptr);
365 return (
size_t) (ptr - string);
405 for (i = 0; i < len; ++i) {
406 if (
string[i] == search) {
452 in_length = strlen(
string);
460 while (first_char < in_length) {
461 if (! isspace((
int)
string[first_char])) {
467 if (first_char < in_length) {
474 last_char = in_length - 1;
475 while (isspace((
int)
string[last_char])) {
481 length = last_char - first_char + 1;