Changeset 4505 for trunk/Nebulous/nebclient/src/xmalloc.c
- Timestamp:
- Jul 7, 2005, 12:03:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/nebclient/src/xmalloc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/nebclient/src/xmalloc.c
r3017 r4505 4 4 * Copyright (C) 2003 Robert Lupton 5 5 * 6 * $Id: xmalloc.c,v 1. 1 2005-01-16 10:37:59jhoblitt Exp $6 * $Id: xmalloc.c,v 1.2 2005-07-07 22:03:16 jhoblitt Exp $ 7 7 */ 8 8 … … 27 27 return(ptr); 28 28 } 29 30 void * 31 xrealloc(void *ptr, size_t size) 32 { 33 void *newptr = realloc(ptr, size); 34 35 if (!newptr) { 36 perror("realloc"); 37 exit(EXIT_FAILURE); 38 } 39 40 return(newptr); 41 } 29 42 30 43 void
Note:
See TracChangeset
for help on using the changeset viewer.
