Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!tcdcs!swift.cs.tcd.ie!vax1.tcd.ie!dbearly From: dbearly@vax1.tcd.ie Newsgroups: comp.lang.c Subject: turbo C initializing pointer problem Message-ID: <1991Jan15.111940.7464@vax1.tcd.ie> Date: 15 Jan 91 11:19:40 GMT Organization: Trinity College Dublin Lines: 18 I seem to be having a few problems with pointers in TC 2.0. What happens is I have a pointer to a data structure ( a doubly linked list) which contains character string pointers etc. At compile time I get the warning 'possible use before initialization' on the first element of the list and then have problems with the first call to strcpy to this element (ie it doesn't work). I have tried initializing the element to NULL, which gets rid of the warning and strcpy problems, but when the program terminates I get a 'Null pointer assignment' message. What can I do ?? Dom. 8-{0 dbearly@vax1.tcd.ie dbearly@unix1.tcd.ie