2 Copyright (C) 2006-2019 Ben Kibbey <bjk@luxsci.net>
4 This file is part of pwmd.
6 Pwmd is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
11 Pwmd is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
32 #include <sys/types.h>
37 #define xmalloc malloc
38 #define xrealloc realloc
39 #define xcalloc calloc
40 void *xrealloc_gpgrt (void *, size_t);
42 void xfree (void *ptr
);
43 void *xmalloc (size_t size
);
44 void *xrealloc (void *ptr
, size_t size
);
45 void *xcalloc (size_t nmemb
, size_t size
);
46 void *xrealloc_gpgrt (void *, size_t);
48 void wipememory (void *ptr
, int c
, size_t len
);