Numerical Recipes is non-portable code

Doug Gwyn gwyn at smoke.ARPA
Fri Sep 2 17:53:38 AEST 1988


In article <557 at accelerator.eng.ohio-state.edu> rob at kaa.eng.ohio-state.edu (Rob Carriere) writes:
>Peace now?

Sure; why not?

>Several people have suggested that for these cases one either carries
>the address arithmatic through the code, or accesses the arrays
>through a function that does the arithmatic for you.

Or you can allocate an extra element and go ahead and use 1-based
indexing.  Nobody is forcing you to use the [0] element of an array.
It is seldom that the small amount of wasted space would matter.



More information about the Comp.lang.c mailing list