]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/string/strdup/: memdup_T(): Add API
authorAlejandro Colomar <alx@kernel.org>
Wed, 16 Jul 2025 15:38:48 +0000 (17:38 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 17 Feb 2026 09:45:39 +0000 (10:45 +0100)
commitab76e7abc2fa5d34e73932e549d720d702b03730
tree4b00ac47ef6322d62753a1d1997edf56d18dbdb3
parentf754f6e0605abd0b912602452ab94cbe4fd2f10c
lib/string/strdup/: memdup_T(): Add API

And update lib/string/README:
-  Rename MEMDUP() => memdup_T(), as we're moving away from upper-case
   macros to ones that actually say something about what they do in the
   name (_T for type-safe, and _a for array-safe).
-  memdup() is unimplemented.

Cc: "Evgeny Grin (Karlson2k)" <k2k@drgrin.dev>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/Makefile.am
lib/string/README
lib/string/strdup/memdup.c [new file with mode: 0644]
lib/string/strdup/memdup.h [new file with mode: 0644]