Help...

Conor P. Cahill cpcahil at virtech.UUCP
Tue Oct 10 21:54:32 AEST 1989


In article <39902 at bu-cs.BU.EDU>, austin at 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     |
+-----------------------------------------------------------------------+



More information about the Comp.lang.c mailing list