橘子味的心
标题:C库函数 strchr()

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);

}

目录

分类