1- /*
2- * SPDX-FileCopyrightText: 1990 - 1994, Julianne Frances Haugh
3- * SPDX-FileCopyrightText: 1996 - 1998, Marek Michałkiewicz
4- * SPDX-FileCopyrightText: 2003 - 2006, Tomasz Kłoczko
5- * SPDX-FileCopyrightText: 2008 , Nicolas François
6- * SPDX-FileCopyrightText: 2023 , Alejandro Colomar <[email protected] > 7- *
8- * SPDX-License-Identifier: BSD-3-Clause
9- */
1+ // SPDX-FileCopyrightText: 1990-1994, Julianne Frances Haugh
2+ // SPDX-FileCopyrightText: 1996-1998, Marek Michałkiewicz
3+ // SPDX-FileCopyrightText: 2003-2006, Tomasz Kłoczko
4+ // SPDX-FileCopyrightText: 2008 , Nicolas François
5+ // SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <[email protected] > 6+ // SPDX-License-Identifier: BSD-3-Clause
107
118/* Replacements for malloc and strdup with error checking. Too trivial
129 to be worth copyrighting :-). I did that because a lot of code used
1916
2017#include <config.h>
2118
22- #ident "$Id$"
23-
2419#include "alloc.h"
2520
2621#include <errno.h>
@@ -36,7 +31,6 @@ extern inline void *xmalloc(size_t size);
3631extern inline void * xmallocarray (size_t nmemb , size_t size );
3732extern inline void * mallocarray (size_t nmemb , size_t size );
3833extern inline void * reallocarrayf (void * p , size_t nmemb , size_t size );
39- extern inline char * xstrdup (const char * str );
4034
4135
4236void *
0 commit comments