🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #26174

Re: gnuplot (is there life after Megamax 1.1?)

#26174
From: john
Date: Sat, 11 Apr 1987 04:52
41 lines
2077 bytes
In article <461@cernvax.UUCP> jmg@cernvax.UUCP () writes:
 >
 >I have just about got the original version of gnuplot running on my ST.

Congratulations!

 > My query is whether anybody wants it,
 >and whether they would like the hacked limited version or wait for the
 >super++ version.
 >

I will be glad to see your current version -and- would be happy to
see the final version also...  My net address is below.  Feel free
to send me a copy when you get the time unless you're planning to
post it to the .binarys. or .source. newsgroups...

 >In doing this I have found two (more!) bugs in Megamax:-
 >
 >  sizeof("anystring") returns 4 (the size of the pointer!!!!), not 10.

Excuse me, but this doesn't sound like a bug...  If you take a look at
K&R page 94, "In fact, any reference to an array is converted by the
compiler to a pointer to the beginning of the array."  This means you're
taking sizeof a pointer, which is in fact 4...(Remember, in C a string
is no different from a null terminated array of characters.)

  Sure you didn't intend to use strlen("anystring") instead?  That, would
return 9 as the length of the string....

 >
 >Also, the %-* used in various print statements fails in Megamax (another
 >bug!).
 >

This doesn't work in -most- librarys...  Try %* and using a negative
argument instead....

---
John Stanley (john@viper.UUCP)
Software Consultant - DynaSoft Systems
UUCP: ...{amdahl,ihnp4,rutgers}!{meccts,dayton}!viper!john
Technical Details
Message-ID: <813@viper.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!dayton!viper!john
References: <461@cernvax.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!dayton!viper!john
From: john@viper.UUCP
Newsgroups: comp.sys.atari.st
Subject: Re: gnuplot (is there life after Megamax 1.1?)
Message-ID: <813@viper.UUCP>
Date: Fri, 10-Apr-87 23:52:21 EST
Article-I.D.: viper.813
Posted: Fri Apr 10 23:52:21 1987
Date-Received: Sun, 12-Apr-87 00:44:19 EST
References: <461@cernvax.UUCP>
Reply-To: john@viper.UUCP (John Stanley)
Distribution: world
Organization: DynaSoft Systems
Lines: 41
Keywords: gnuplot, megamax, bugs