File: xmalloc.h

package info (click to toggle)
smenu 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,520 kB
  • sloc: ansic: 14,152; sh: 4,748; makefile: 27
file content (25 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef XMALLOC_H
#define XMALLOC_H

void *
rpl_malloc(size_t size);

void *
rpl_realloc(void * ptr, size_t size);

void *
xmalloc(size_t size);

void *
xcalloc(size_t n, size_t size);

void *
xrealloc(void * ptr, size_t size);

char *
xstrdup(const char * p);

char *
xstrndup(const char * str, size_t len);

#endif