Lines Matching refs:amount
1040 Xalloc(unsigned long amount)
1043 * Xalloc used to return NULL when large amount of memory is requested. In
1049 if ((long)amount <= 0)
1051 "requesting unpleasantly large amount of memory: %lu bytes.\n",
1052 amount);
1054 return malloc(amount);
1058 XNFalloc(unsigned long amount)
1060 void *ptr = malloc(amount);
1067 Xcalloc(unsigned long amount)
1069 return calloc(1, amount);
1073 XNFcalloc(unsigned long amount)
1075 void *ret = calloc(1, amount);
1082 Xrealloc(void *ptr, unsigned long amount)
1085 * Xrealloc used to return NULL when large amount of memory is requested. In
1091 if ((long)amount <= 0)
1093 "requesting unpleasantly large amount of memory: %lu bytes.\n",
1094 amount);
1096 return realloc(ptr, amount);
1100 XNFrealloc(void *ptr, unsigned long amount)
1102 void *ret = realloc(ptr, amount);