#include <stdio.h>
#include <string.h>

#define SIZE    40

int main()
{
  char string[ SIZE ] = "It is codes";
  char * substring = "cab";

  printf( "There're no  \"%s\" \n"
           "in the first %zu characters in the string \"%s\"\n",
            substring, strcspn(string, substring), string);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: