OK. This is a short one. I would say I'm still pretty new to be a real full time Linux developer, so this is the first time I met this problem.
I've been using stricmp() for a long long time but this is the first time I found there's no stricmp() in Linux. Instead, Linux has a similar function called strcasecmp() (also a corresponding strncasecmp() ). Besides that, these two functions are not defined in string.h, instead, they reside in a separate header file called strings.h. That's it.
This is really annoying especially when you are considering portability.
No comments:
Post a Comment