strutil(3) — UNIX Programmer’s Manual
NAME
more string utilities
SYNOPSIS
#include <text/strutil.h>
DESCRIPTION
These functions provide useful string manipulations. They constitute the string utility package of the text library, libtext. The link editor searches this library under the "-ltext" option. Declarations for these functions may be obtained either from the include file <text/strutil.h>, or from the master include file <text/text.h>.
SUMMARY
int blank(char ∗s);
Returns true if s is blank, that is, either null or full of white space.
char ∗ hasdigit(char ∗s);
Returns a pointer to the first digit in s, or zero if no digits were found.
char ∗ haslower(char ∗s);
Returns a pointer to the first lowercase character in s, or zero if no lowercase characters were found.
char ∗ hasupper(char ∗s);
Returns a pointer to the first uppercase character in s, or zero if no uppercase characters were found.
char ∗ strtolower(char ∗s);
Converts s to lowercase and returns s, or zero if no uppercase characters were found.
char ∗ strtoupper(char ∗s);
Converts s to uppercase and returns s, or zero if no lowercase characters were found.
char ∗ strindex(char ∗s, char ∗t);
Returns a pointer to the first occurence of t in s, or zero if not found.
translate(char ∗s, char a, char b);
Converts all occurences of a to b in s.
SEE ALSO
NeXT, Inc. — July 7, 1989