-
-byte *lmalloc(unsigned int size)
-{
- byte *area;
-
- if (size == 0)
- {
- size = 1;
- }
- if (!(area = (byte *)malloc(size)))
- {
- fprintf(stderr, "Out of memory!\n");
- exit(1);
- }
-
- return(area);
-}
-
-byte *lcalloc(unsigned int size)
-{
- byte *area;
-
- if (size == 0)
- {
- size = 1;
- }
- if (!(area = (byte *)calloc(1, size)))
- {
- fprintf(stderr, "Out of memory!\n");
- exit(1);
- }
-
- return(area);
-}