无法解析标识符 - C 编程

unable to resolve the identifier - C programming

我最近为 C/C++ 配置了 Netbeans,我正在尝试编写简单的应用程序,用逗号分隔字符串。

虽然我在使用 strsep 时出现以下错误,并且我已经解决了各种问题(关于 Whosebug 本身),但其中 none 似乎有所帮助。

Unable to resolve identifier strsep.

有人可以帮忙吗?

strsep 不是 C 标准库的一部分。

所以你必须自己编码,或者找一个版本。

最接近 "normal" strsep 的是 strtok

strsep() 是 BSD。

GNU libc 提供它,如果 #defineing _BSD_SOURCE

Please find the Linux man-page to strsep()for reference here.