Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!brl-adm!adm!jb1742@almsa-1.arpa From: jb1742@almsa-1.arpa Newsgroups: comp.lang.c Subject: Help with Strings Message-ID: <6442@brl-adm.ARPA> Date: Mon, 30-Mar-87 14:07:21 EST Article-I.D.: brl-adm.6442 Posted: Mon Mar 30 14:07:21 1987 Date-Received: Wed, 1-Apr-87 01:18:49 EST Sender: news@brl-adm.ARPA Lines: 22 In the statement-- if (c == "\n" || c == "\0") OR if (c == '\n' || c == '\0') execution translates to-- if ( == '\n' || == '\0' ) and the statement bombs out because there is no test argument given. The way I have found around this is to write the statement as: if (xc == x || xc == x) upon execution this translates to if (x == x || xc == x) Hope this is what you were looking for.