Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: Help... Message-ID: <1254@virtech.UUCP> Date: 10 Oct 89 11:54:32 GMT References: <731@carroll1.UUCP> <39902@bu-cs.BU.EDU> Organization: Virtual Technologies Inc Lines: 14 In article <39902@bu-cs.BU.EDU>, austin@bucsf.bu.edu (Austin Ziegler) writes: > I don't know, but I just tried it. One possibility is to strcat a \0 > to the end of h before printf'ing h. Otherwise, you can get the same > result from char *h, and not get too many problems. You can't scanf(.) into a char *h without first assigning the *h to point to a real storage area. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+