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.
>
> If you check with a C tutorial or say the Kernighan and Ritchie  
> book, x[361]
> means that space is reserved for 361 elements, but the index range  
> of those
> 361 elements is 0 to 360!
>
> Alan
>
Of course you're both right. How could I have written those bindings  
and then forgotten this so quickly. Must be the old brain tumor  
acting up again. Sorry for the fuss.

Jerry


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to