malloc 640K or so?
Under the segmented architecture of PC compatibles, it can be difficult to use more than 640K with any degree of transparency. See also question 19.23. 7.19: My program is crashing, apparently somewhere down inside malloc. A: Make sure you aren’t using more memory than you malloc’ed, especially for strings (which need strlen(str) + 1 bytes). 7.