Archived

This topic is now archived and is closed to further replies.

Daishim

String Comparison

Recommended Posts

use strcmp().

it returns zero if the strings are the same, so some people like to do a little #define to make the syntax nicer....

#define StringMatch(a,b) (strcmp(a,b) == 0)

Share this post


Link to post
Share on other sites