Initialize an array of characters
init_char_array (Array_Type a, String_Type s)
The init_char_array
function may be used to initialize a
character array a
by settting the elements of the array
a
to the corresponding characters of the string s
.
The statements
variable a = Char_Type [10];
init_char_array (a, "HelloWorld");
creates an character array and initializes its elements to the
characters in the string "HelloWorld"
.
The character array must be large enough to hold all the characters of the initialization string.
strlen, strcat