home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / SMALL_C / CALLOC.C < prev    next >
Text File  |  1987-10-04  |  384b  |  13 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. #include stdio.h
  3. /*
  4. ** Cleared-memory allocation of n items of size bytes.
  5. ** n     = Number of items to allocate space for.
  6. ** size  = Size of the items in bytes.
  7. ** Returns the address of the allocated block,
  8. ** else NULL for failure.
  9. */
  10. calloc(n, size) char *n, *size; {
  11.   return (Ualloc(n*size, YES));
  12.   }
  13.