Skip to content
Snippets Groups Projects
Commit 3618e911 authored by yassin.elhakoun's avatar yassin.elhakoun
Browse files

Update allocation_dynamique.md (type de retour de initialize_to était déclaré...

Update allocation_dynamique.md (type de retour de initialize_to était déclaré comme uint32_t, mais retourne un tableau int32_t*)
parent bf72e886
Branches yassin.elhakoun-master-patch-79717
No related tags found
No related merge requests found
Pipeline #27242 failed
......@@ -152,7 +152,7 @@ free(p); // ne pas oublier
. . .
```C
uint32_t initialize_to(size_t size, int32_t val) {
int32_t *initialize_to(size_t size, int32_t val) {
int32_t *p = malloc(size * sizeof(*p));
for (size_t i = 0; i < size; ++i) {
p[i] = val;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment