File: xmalloc.h

package info (click to toggle)
mdadm 4.5-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,092 kB
  • sloc: ansic: 46,827; sh: 2,481; makefile: 281; python: 44
file content (14 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: GPL-2.0-only

#ifndef XMALLOC_H
#define XMALLOC_H

#include <stddef.h>

void *xmalloc(size_t len);
void *xrealloc(void *ptr, size_t len);
void *xcalloc(size_t num, size_t size);
char *xstrdup(const char *str);
void *xmemalign(size_t alignment, size_t size);

#endif