Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
字符信息[256]="Apple,iPhone,iPad";
我想在这个char数组中搜索,例如在上面的数组中搜索“iPhone”,返回TRUE,因为它包含这个字符串。
如何在 iOS xcode 程序中做到这一点?谢谢。
这里是:
BOOL stringInString(char *s1, char *s2) { return (strstr(s1, s2) != NULL); }