File: xmalloc.ic

package info (click to toggle)
array-info 0.16-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: ansic: 2,056; makefile: 121; xml: 19
file content (11 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>

static void *
xmalloc(int size)
{
        void *addr;

        if (!(addr = malloc(size)))
                printf("Cannot allocate memory...\n");
        return addr;
}