Re: [Rd] UPDATE: Fwd: Memory...

2006-08-23 Thread Hin-Tak Leung
I think it needs to be strlen()+1, for the terminating null, or you'll just be pray for your luck that your compiler actually null-pad allocations to the nearest 4-byte or whatever and so your program doesn't crash as it should later when you try to read argV elsewhere. As for the other question a

[Rd] UPDATE: Fwd: Memory...

2006-08-23 Thread Sender
UPDATE: Okay I've narrowed the problem down. Within my C routine I use the getopt() method from . For some reason when I recall this routine via my .Call, getopt() hasn't "refreshed" that is it still points to the end of my parsed command line arguments. Is R keeping this function alive in memo