Re: [Rd] array indexes in C

2006-11-21 Thread Benjamin Tyner
Hin-Tak & Tamas, For example, see what I've done in http://www.stat.purdue.edu/~btyner/postage_0.1-1.tar.gz I am by no means a C guru but it works with my compiler. The relevant lines are (in postage.c:) void postage(int *lambda, int *D, int *tau, int r[*tau][*D]) { (in postage.R:) r <-

Re: [Rd] array indexes in C

2006-11-19 Thread Tamas K Papp
Hi Ben, Thanks for your answer. I looked at the status of VLA on the GCC homepage and it appears to be "broken". [1] Do you think that the code below still works? Or are you using a different compliler? Thanks, Tamas [1] http://gcc.gnu.org/c99status.html On Sun, Nov 19, 2006 at 09:55:17AM -