Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!utcsri!flaps From: flaps@utcsri.UUCP Newsgroups: comp.lang.c Subject: Re: *\"LDA\" ok? Message-ID: <5298@utcsri.UUCP> Date: Sat, 22-Aug-87 14:29:50 EDT Article-I.D.: utcsri.5298 Posted: Sat Aug 22 14:29:50 1987 Date-Received: Sun, 23-Aug-87 10:16:19 EDT References: <8877@brl-adm.ARPA> Reply-To: flaps@utcsri.UUCP (Alan J Rosenthal) Organization: University of Toronto Lines: 17 Summary: ADLER1@BRANDEIS.BITNET writes: (char opcode[something];) > if (*opcode == *"LDA") printf("Gotcha!\n"); This compares the first letter of opcode with the first letter of "LDA". Not what you want. Strings are not fundamental types in C. You need a library function to compare them. if(strcmp(opcode,"LDA") == 0) printf... ajr (also flaps at utorgpu on bitnet) "Your donation will be used to torture animals in useless experiments."