我的意思是,我们可以这样使用:
char string1[] = "???, buddy*\0";
char string2[] = "Hey, buddy, hello!\0";
if (like(string1, string2)
puts("strings are similar!");
else
puts("string are different!");
最佳答案
您想要使用正则表达式库。有关 ANSI 库信息,请参阅此问题:Regular expressions in C: examples?
关于c - C 中是否有类似于 SQL 中的 LIKE 的函数来比较 2 个字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34441525/