Programming Reference/Librarys
Question & Answer
Q&A is closed
/* * strspn example code * http://code-reference.com/c/string.h/strspn */ #include <stdio.h> #include <string.h> int main( void ) { const char string[] = "the answer is 42"; int pos = strspn(string, "the answer = 42"); printf("different char at position :%d\n",pos+1); return 0; }
different char at position :12