标签:字符串 std span ret pre ons http 索引 code
#include <stdio.h> #include <string.h> int main () { const char str[] = "http://www.runoob.com"; const char ch = ‘.‘; char *ret; ret = strchr(str, ch); printf("|%c| 之后的字符串是 - |%s|\n", ch, ret); return(0); }
标签:字符串 std span ret pre ons http 索引 code
原文地址:https://www.cnblogs.com/sea-stream/p/11478879.html