We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34503f3 commit 39f2c57Copy full SHA for 39f2c57
zorro_folder/Strategy/DynamicArray.c
@@ -40,9 +40,9 @@ void demo1()
40
41
int h = da_new(sizeof(EXAMPLE));
42
43
- // declare four blank structs
44
- EXAMPLE e1, e2; // single structs
45
- EXAMPLE ea[2]; // array of two structs
+ // declare two structs and one array of two structs, and set them to blank.
+ EXAMPLE e1, e2;
+ EXAMPLE ea[2];
46
memset(&e1, 0, sizeof(EXAMPLE));
47
memset(&e2, 0, sizeof(EXAMPLE));
48
memset(ea, 0, 2 * sizeof(EXAMPLE));
0 commit comments