| Summary |
#include <string.h>
char far *fstrchr (
const char far *string, /* string to search */
char c);
|
| Description |
The fstrchr function searches string for
the first 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 fstrchr function returns a pointer to the first
occurrence of character c in string or a null pointer if no matching character is
found.
|
| See Also | fstrcat, fstrcmp, fstrcpy, fstrcspn, fstrlen, fstrncat, fstrncmp, fstrncpy, fstrpbrk, fstrpos, fstrrchr, fstrrpbrk, fstrrpos, fstrspn |
| Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_strchr (char far *buf) {
char *s;
s = fstrchr (buf, 't');
if (s == NULL)
printf ("No t's in buf.\n");
}
|