Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!usc!apple!netcom!hotcity!rat From: rat@hotcity.UUCP (P W) Newsgroups: comp.sys.amiga Subject: Compairing C values Message-ID: Date: 5 Feb 91 02:28:53 GMT Organization: BBS Lines: 19 I have + as an input arguement via *argv[] and whenever I try to compare its value it comes out as a 0. For instance... If I compile a program like this: #include #include void main(int argc, char *argv[]) { And I type "test +" (I would name the file test) it would just print a equals 0. Any help would be appereciated... char a = argv[1]; if (a = '+') printf("a equals +"); if (a = '0') printf("a equals '0'"); if (a = 0) printf("a equals 0"); }