Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!genrad!decvax!harpo!seismo!hao!hplabs!sri-unix!knutsen From: knutsen@sri-unix.UUCP Newsgroups: net.lang.c Subject: array and structure initialization Message-ID: <5611@sri-unix.UUCP> Date: Fri, 10-Jun-83 16:14:29 EDT Article-I.D.: sri-unix.5611 Posted: Fri Jun 10 16:14:29 1983 Date-Received: Sat, 11-Jun-83 21:08:14 EDT Lines: 21 Say I have a structure foo struct foo { char *f_slist[]; int f_code; } and I want to initialize one. Since char *foo[] = {"aaa", "bbb", "ccc", ""}; works, I tried struct foo foobar = {{"xx", "yy", ""}, 1}; and got "0-length row: f_slist" and "too many initializers: f_slist" errors. Any ideas? Thanks... Andrew Knutsen SRI