lib/string/memset/: memzero(), strzero(): Return the pointer

This allows chaining with free(3) on the same line.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-08-30 21:44:07 -05:00
committed by Serge Hallyn
parent 87a5145719
commit dab8de8a72
2 changed files with 10 additions and 11 deletions
+3 -5
View File
@@ -1,15 +1,13 @@
// SPDX-FileCopyrightText: 2023, Alejandro Colomar <alx@kernel.org>
// SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <alx@kernel.org>
// SPDX-License-Identifier: BSD-3-Clause
#include <config.h>
#ident "$Id$"
#include <stddef.h>
#include "string/memset/memzero.h"
extern inline void memzero(void *ptr, size_t size);
extern inline void strzero(char *s);
extern inline void *memzero(void *ptr, size_t size);
extern inline char *strzero(char *s);