Re: [Plplot-devel] Arrays incorrectly dimensioned in x03c.c

2007-09-20 Thread Jerry
On Sep 20, 2007, at 2:41 PM, Alan W. Irwin wrote: > On 2007-09-20 12:50-0700 Jerry wrote: > >> But the arrays are defined as x[361] and thus have 362 elements. > > My original programming background was fortran so C array size > declarations > also confused me when I first encountered them. > >

Re: [Plplot-devel] Arrays incorrectly dimensioned in x03c.c

2007-09-20 Thread Alan W. Irwin
On 2007-09-20 12:50-0700 Jerry wrote: > But the arrays are defined as x[361] and thus have 362 elements. My original programming background was fortran so C array size declarations also confused me when I first encountered them. If you check with a C tutorial or say the Kernighan and Ritchie boo

Re: [Plplot-devel] Arrays incorrectly dimensioned in x03c.c

2007-09-20 Thread Jerry
On Sep 20, 2007, at 3:56 AM, Arjen Markus wrote: > Jerry wrote: > >> It seems to me that the arrays in x03c.c, x, y, x0, y0, are >> incorrectly dimensioned as x[361] etc. When I make the Ada arrays >> vary from 0 to 361, extraneous lines are plotted, but when I make >> them go from 0 to

Re: [Plplot-devel] Arrays incorrectly dimensioned in x03c.c

2007-09-20 Thread Arjen Markus
Jerry wrote: >It seems to me that the arrays in x03c.c, x, y, x0, y0, are >incorrectly dimensioned as x[361] etc. When I make the Ada arrays >vary from 0 to 361, extraneous lines are plotted, but when I make >them go from 0 to 360, the output looks OK. I don't know if this will >cause the