/[osn-commons]/trunk/uar/xmalloc.h
ViewVC logotype

Contents of /trunk/uar/xmalloc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations)
Wed Aug 7 18:57:45 2024 UTC (7 months, 3 weeks ago) by rakinar2
File MIME type: text/x-c
File size: 387 byte(s)
refactor(uar): better I/O strategies to decrease memory usage
1 #ifndef UAR_XMALLOC_H
2 #define UAR_XMALLOC_H
3
4 #include <stddef.h>
5
6 /* Allocate memory and abort process on error. */
7 void *xmalloc (size_t size);
8
9 /* Allocate 'n' zeroed memory block of 'size' and abort process on error. */
10 void *xcalloc (size_t nmemb, size_t size);
11
12 /* Reallocate memory and abort process on error. */
13 void *xrealloc (void *ptr, size_t size);
14
15 #endif /* UAR_XMALLOC_H */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26