Hello,
It is a bad idea to use mathematical equations (==) compare strings! This is why there is a standard library to do it... strcmp is the traditional correct way to do it.
Might as well learn the proper way to do it....or that portable code may bomb out on the next compiler release.
If it is worth doing, do it correctly!
Christian
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
Offline 1,629 posts
since Mar 2004