BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kstrstr - find a substring within a string
LIBRARY CALL
char *kstrstr(
const char *istr,
const char *sub_str)
INPUT
- istr - The string to search.
- sub_str - The sub string to look for.
OUTPUT
none
RETURN VALUE
If the sub_str is found in istr, a pointer indicating the
address of the first character of the substring within the
istr string is returned. If the substring is not
a part of the input string, 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 first occurrence of one string
in another. It is a replacement for the system
library routine strstr(). This routine scans the
input string, 'istr', for the first occurrence
of a substring specified by 'sub_str'.
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.