注意里面有一个空格。
我可以使用哪些功能?
最佳答案
你可以使用
if (!strncmp("GET ", str, 4)
{
...
}
else if (!strncmp("POST ", str, 5))
{
...
}
else
{
...
}
关于c - 在c中如何检查字符串是否以 "GET "或 "POST "开头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2790428/