Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!tgr!hadron!jsdy@SEISMO.ARPA From: jsdy@SEISMO.ARPA Newsgroups: net.lang.c Subject: Re: array refs Message-ID: <7804@brl-tgr.ARPA> Date: Tue, 29-Jan-85 06:24:08 EST Article-I.D.: brl-tgr.7804 Posted: Tue Jan 29 06:24:08 1985 Date-Received: Wed, 30-Jan-85 19:04:27 EST Sender: news@brl-tgr.ARPA Organization: Ballistic Research Lab Lines: 16 > struct weird { > int count; > ... > ... > char string[1]; > }; > > w = malloc(sizeof(struct weird) + strlen(source); > w->count = strlen(strcpy(w->string,source)); While I know that this is sometimes necessary when dealing with external communications devices (e.g.), I've never really been happy about being forced to use this device. It seems, somehow, to be betraying the old and good principle of "saying what you m e a n ". Joe Yao hadron!jsdy@seismo.{ARPA,UUCP}