char* strpbrk(const char* kcpString, const char* kcpChars);
#include <cstdio>
#include <cstring>
int main()
{
char caString[] = "XoaX.net";
char caChars[] = "aei";
// Find the first of "aei" inside of "XoaX.net"
char* cpFound = strpbrk(caString, caChars);
int iPos = (cpFound - caString);
printf("First of %s found at %i\n", caChars, iPos);
return 0;
}
© 20072024 XoaX.net LLC. All rights reserved.