# Copying and initializing using `mem*` functions

## Copying
<!-- assume that they read about mem* -->
::::{activity} Copying using `mem*`
1. In section {ref}`copying-an-array-for-passing-by-value` we copied an array using a `for` loop. Which [character array manipulation](cref:string/byte) (`mem*`) function could be useful?

2. Convert the following code.
::::

:::{literalinclude} ../code/birthday_collage.c
:language: c
:::

<!-- actually we don't need this -->
## Initializing

:::{activity} Initializing using `mem*`
1. Imagine you want to give an empty collage to another friend, but you want to reuse `collage_copy`. Which `mem*` function would you use.
1. Add it to the code above and test its effect using the debugger.
:::