Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: hacknews Subject: emalloc(3) arrives Message-ID: <3876@utzoo.UUCP> Date: Fri, 18-May-84 17:39:24 EDT Article-I.D.: utzoo.3876 Posted: Fri May 18 17:39:24 1984 Date-Received: Fri, 18-May-84 17:39:24 EDT Organization: U of Toronto Zoology Lines: 8 Minor new utility function: emalloc(3) is a variant of malloc(3) that does the same thing unless malloc() is unable to allocate the requested memory. When this happens, emalloc() invokes error(3) to print a message and exit. This is a convenience when the return from malloc() should be checked [i.e., always] but there is nothing useful to be done when it fails. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry