BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kstrpbrk - find the first occurrence of a character from a set of chararacters
LIBRARY CALL
char *kstrpbrk(
const char *istr,
const char *sub_str)
INPUT
- istr - The string to search for a character.
- sub_str - The string holding the set of characters to
look for.
OUTPUT
none
RETURN VALUE
If one of the characters in 'sub_str' is found in 'istr', a
pointer indicating the address of the character it found
in 'istr' is returned. If no characters in the 'sub_str'
string appear in 'istr', a NULL is returned.
This routine also protects against NULL on both the input and
substring variables. If either is NULL, the value of NULL is
returned.
DESCRIPTION
This function locates the position of the first occurrence
in the input string of any character from a specified set
of characters. This routine is a replacement for the system
library routine strpbrk() with some extra protection against
NULL input strings. It searches the input string, 'istr',
for the first occurrence of any character in a set of
characters, specified by the 'sub_str' string.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/strings.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.