| Summary |
#include <string.h>
char far *fstrpbrk (
const char far *string, /* string to search */
const char far *set); /* characters to find */
|
| Description | The fstrpbrk function searches string for the first occurrence of any character from set. The null terminator is not 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 fstrpbrk function returns a pointer to the matching character in string. If string contains no characters from set, a null pointer is returned. |
| See Also | fstrcat, fstrchr, fstrcmp, fstrcpy, fstrcspn, fstrlen, fstrncat, fstrncmp, fstrncpy, fstrpos, fstrrchr, fstrrpbrk, fstrrpos, fstrspn |
| Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_strpbrk (char far *text) {
char vowels [] ="AEIOUaeiou";
char far *p;
p = fstrpbrk (text, vowels);
if (p == NULL)
printf ("No vowels found in text.\n");
}
|