inkey$, noecho, and other impossibles

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jan 11 18:56:51 AEST 1989


In article <15396 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>Possibly.  In fact, malloc() might be one (`too machine dependent').

malloc() can be implemented on all known systems for which a C
implementation is otherwise feasible.  It might not be able to
grow the process allocation at run time, but it can certainly
dole out parcels from a pool that was allocated at link time.

The stack is also like this on a lot of systems; it needs to be
specified large enough at link time.  The main operational
difference is that malloc() reports failure when it runs out of
memory to give away, whereas running out of stack usually has
more catastrophic results.



More information about the Comp.lang.c mailing list