[LCP]Char Comparisons?

Chirag Kantharia chyrag at yahoo.com
Thu Aug 29 17:31:24 UTC 2002


--- James Mclean <james at adam.com.au> wrote:
> Now the problem i believe is the if statement, as the comparison is
> between a char and a regular text string. I know it is getting the
<snip>
> 	if(buf=="load") {

You might want to use strcmp than "==".

chyrag.


=====
Chirag Kantharia <chyrag at yahoo.com>

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com




More information about the linuxCprogramming mailing list