X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Fstrrchr.c;h=5cf7c14d8b746ea64cd49d44d598d5c96731fed8;hb=b0eb7e3ea662525545e60fcb092272afaa1cddb2;hp=8c05bcbead8cd4724034fd032cd32b0c93955d8b;hpb=d0352a18a504a4e7b761f6b3264cf11347d8d056;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/strrchr.c b/libiberty/strrchr.c index 8c05bcbead..5cf7c14d8b 100644 --- a/libiberty/strrchr.c +++ b/libiberty/strrchr.c @@ -2,27 +2,21 @@ This function is in the public domain. */ /* -NAME - strrchr -- return pointer to last occurance of a character - -SYNOPSIS - char *strrchr (const char *s, int c) - -DESCRIPTION - Returns a pointer to the last occurance of character C in - string S, or a NULL pointer if no occurance is found. - -BUGS - Behavior when character is the null character is implementation - dependent. + +@deftypefn Supplemental char* strrchr (const char *@var{s}, int @var{c}) + +Returns a pointer to the last occurrence of the character @var{c} in +the string @var{s}, or @code{NULL} if not found. If @var{c} is itself the +null character, the results are undefined. + +@end deftypefn + */ #include char * -strrchr (s, c) - register const char *s; - int c; +strrchr (register const char *s, int c) { char *rtnval = 0;