lq-text: emalloc

char * emalloc(What, nbytes) CONST char *What; unsigned nbytes;

Purpose

Allocates the given number of bytes of memory and returns a pointer to it, using the system-supplied malloc function.

If there is not enough memory, a fatal error is generated. The What argument is included in any such error message, and should be a human-readable description of the error, as an aid to help the user understand exactly what failed.

A future release of lq-text will have an improved memory allocation interface.

Errors

A fatal (E_FATAL | E_MEMORY) error is produced if memory is exhausted.

See Also: