size_t strcspn(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"
int iFound = strcspn(caString, caChars);
printf("First of %s found at %i\n", caChars, iFound);
return 0;
}
© 20072024 XoaX.net LLC. All rights reserved.