主页
C 语言
C 字符串 strcspn() 函数
demo_ref_string_strcspn
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { char myStr[] = "Learn C++, Java and Python!"; int pos = strcspn(myStr, ",.!?"); printf("%d", pos); return 0; }
9