Next Previous Contents

42. init_char_array

Synopsis

Initialize an array of characters

Usage

init_char_array (Array_Type a, String_Type s)

Description

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.

Example

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".
Notes

The character array must be large enough to hold all the characters of the initialization string.

See Also

strlen, strcat


Next Previous Contents