BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kstrrchr - reverse scan a string to find a character

LIBRARY CALL

char *kstrrchr(
   const char *istr,
   int  character)

INPUT

OUTPUT

none

RETURN VALUE

A pointer to the address in the input string, 'istr', where the last occurrence of the 'character' character is. NULL is returned if 'character' is not in the input string, or if a NULL input string is provided.

DESCRIPTION

This function finds the last occurrence of a specified character in a string and it is similar to the system call strrchr(). kstsrrchr() searches the input string from back to front for a character specified by 'character' in the input 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.