1

C- static initialization of structures

view story
linux-howto

http://www.unix.com – Situation: I have an array of structures: Code:     struct my_struct_type {         char tags_sn[5];         char group_c;         char is_err_c;     };     struct my_struct_type stuff[] = {         "abcd", 'A', 'E',         "efgh", 'B', 'E',         "ijkl", 'C', 'E'         NULL, '\0', '\0'     }; This compiles under gcc. Code: % gcc -v Using built-in specs. Target: hppa2.0w-h (HowTos)