Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!mcvax!cernvax!jmg From: jmg@cernvax.UUCP Newsgroups: comp.sys.atari.st Subject: Gnuplot and Megamax bugs Message-ID: <465@cernvax.UUCP> Date: Tue, 14-Apr-87 02:07:36 EST Article-I.D.: cernvax.465 Posted: Tue Apr 14 02:07:36 1987 Date-Received: Wed, 15-Apr-87 05:46:08 EST Reply-To: jmg@cernvax.UUCP () Distribution: world Organization: CERN European Laboratory for Particle Physics, CH-1211 Geneva, Switzerland Lines: 18 I find it very interesting to see the discussion on sizeof("anystring"). The background is that Gnuplot uses a declaration #define PROMPT "gnuplot>" int line[sizeof(PROMPT) + 80)]; There, the sizeof is supposed to give 9, not 4, and cannot be replaced by the strlen function! Gnuplot also uses the format converter %-*, which is supposed to be valid C. Gnuplot also uses the enum extension of C, which Megamax ain't got. Moral: we need an ANSI C standard, and programmers should avoid unnecessary complications (but maybe telling C programmers that is like telling cats to stop chasing mice!).