C库函数 strchr()

Python/Java学习交流群:369606713


C库函数 strchr()

#include <stdio.h>

#include <string.h>



int main () {

   const char str[] = "http://www.codingdict.com";

   const char ch = '.';

   char *ret;



   ret = strchr(str, ch);

   printf("String after |%c| is - |%s|\n", ch, ret);



   return(0);

}