Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!adm!V053MDHL%UBVMS.BITNET@wiscvm.wisc.edu From: V053MDHL%UBVMS.BITNET@wiscvm.wisc.edu Newsgroups: comp.lang.c Subject: Help needed with and strings. Message-ID: <5902@brl-adm.ARPA> Date: Thu, 26-Mar-87 18:57:02 EST Article-I.D.: brl-adm.5902 Posted: Thu Mar 26 18:57:02 1987 Date-Received: Sat, 28-Mar-87 06:20:48 EST Sender: news@brl-adm.ARPA Lines: 20 I am writing a program that manipulates data inside a data file. One of the manipulations requires scanning the data strings (character) for the pres- ence of newline characters. I am using in the program, but I can not get it to work. I am working on a Digital VAX. I have noticed a few points : [1] The function returns a pointer to the first character in the string. It was my belief that the pointer should point to the last <\0> character, as I already know where the string begins. [2] In scanning the string for characters, I can compare with neither "\n" or "\0", as neither of these characters, while actually pre- sent in the strings, registers when compared. Is the compiler wrong? Any help in this would be greatly appreciated. --------------------------------------- "Mutant Hunter" V053MDHL@UBVMSC