Mail Archives: djgpp/1997/09/01/18:50:20
Weizhong Jiang (wj13 AT cornell DOT edu) writes:
> Kevin Dickerson wrote:
>>
>> main()
>> {
>> int l1;
>> char *chr, *buf, *text;
>
> chr, buf and text are uninitialized pointers. since they have automatic
> scope in this case, they may be pointing anywhere. what is worse, you
> have not claimed the memory they are pointing to, so it writing to those
> areas can do anything from just what you expected to eating your hard
> drive alive.
Not in protected mode. :-) You might get erratic results, what you
expected, or it might seg out, but only in real mode could it trash your
disk FATs.
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -