| Summary |
#include <string.h>
char far *fstrrchr (
const char far *string, /* string to search */
char c); /* character to find */
|
| Description | The fstrrchr function searches string for the last occurrence of c. The null character terminating string is included in the search. Note - This function uses far pointers to objects and may be used in any memory model other than Tiny Model.
|
| Return Value | The fstrrchr function returns a pointer to the last character c found in string or a null pointer if no matching character was found. |
| See Also | fstrcat, fstrchr, fstrcmp, fstrcpy, fstrcspn, fstrlen, fstrncat, fstrncmp, fstrncpy, fstrpbrk, fstrpos, fstrrpbrk, fstrrpos, fstrspn |
| Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_strrchr (char far *buf) {
char far *s;
s = fstrrchr (buf, 't');
if (s == NULL)
printf ("No t's were found.\n");
}
|