[C/C++] strpbrk 在字串中找尋指定的符號或字母 | 小惡魔 - 電腦技術 - 工作筆記 - AppleBOY

[C/C++] strpbrk 在字串中找尋指定的符號或字母 | 小惡魔 - 電腦技術 - 工作筆記 - AppleBOY

瀏覽:1043
日期:2024-04-21
繼上一篇:『[C/C++] 切割字串函數:strtok, Network mac address 分割』,內容寫到 Microsoft 用到 strpbrk 來找尋字串中特定符號,並且回傳該符號的位址,用法如下: #include "string.h" #include "stdlib.h" #include "stdio.h" int main () { char str[] = "This is a ......看更多