Lines Matching defs:memory
1 /* vsprintf with automatic memory allocation.
194 CHAR_T *memory; \
203 memory = (CHAR_T *) malloc (memory_size); \
205 memory = (CHAR_T *) realloc (result, memory_size); \
206 if (memory == NULL) \
209 memcpy (memory, result, length * sizeof (CHAR_T)); \
210 result = memory; \
514 /* Overflow, would lead to out of memory. */
518 /* Out of memory. */
875 /* Shrink the allocated memory if possible. */
876 CHAR_T *memory;
878 memory = (CHAR_T *) realloc (result, (length + 1) * sizeof (CHAR_T));
879 if (memory != NULL)
880 result = memory;