An example is zeroing an array.
Example:
CODE:
int a[900];
initialarray(#a[0], 125);
initialarray(#a[0], 125);
The first parameter is a pointer to an array, the second is the data that fills the array.
It is allowed to specify the beginning of the array only 0 index, that is, to fill it from the beginning.
An example of filling a two-dimensional array. The rest is similar.
CODE:
int a[900][20];
initialarray(#a[0][0], 125);
initialarray(#a[0][0], 125);
For char it is allowed to specify both a fill character in 'A' and a numeric code.
CODE:
char a[900];
initialarray(#a[0], 'A');
initialarray(#a[0], 'A');
CODE:
char a[900];
initialarray(#a[0], 65);
initialarray(#a[0], 65);
Filling string
CODE:
string a[900];
initialarray(#a[0], "Бла бла");
initialarray(#a[0], "Бла бла");
CODE:
string a[900];
initialarray(#a[0], "");
initialarray(#a[0], "");