Skip to content

lib/: memdup_T(): Add parameter 'n'#1596

Open
alejandro-colomar wants to merge 1 commit intoshadow-maint:masterfrom
alejandro-colomar:memdup
Open

lib/: memdup_T(): Add parameter 'n'#1596
alejandro-colomar wants to merge 1 commit intoshadow-maint:masterfrom
alejandro-colomar:memdup

Conversation

@alejandro-colomar
Copy link
Copy Markdown
Collaborator

@alejandro-colomar alejandro-colomar commented Mar 22, 2026

I've found this to be useful elsewhere, where we want to duplicate an array.

We need to implement this through a real memdup() function, because arrays can't be copied with the assignment operator ('='); we need to memcpy(3).


Cc: @kees

I've found this to be useful elsewhere, where we want to duplicate an
array.

We need to implement this through a real memdup() function, because
arrays can't be copied with the assignment operator ('='); we need to
memcpy(3).

Signed-off-by: Alejandro Colomar <[email protected]>
@alejandro-colomar alejandro-colomar self-assigned this Mar 22, 2026
@alejandro-colomar alejandro-colomar marked this pull request as ready for review March 22, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant