[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [LCP]Char Comparisons?



--- James Mclean <james@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@yahoo.com>

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