pointer of pointer

2002-12-13 Thread Chris Apers
Hi, I need to build an argv to pass parameter to a main function : int main(int argc, char *argv[]); i try to fill : Char *argvP[4]; with argvP[0] --> "This"; argvP[1] --> "is"; argvP[2] --> "a"; argvP[3] --> "test !"; but if i do : AddArg(argvP[0], "This"); AddArg(argvP[1], "is"); AddArg(

Re: pointer of pointer

2002-12-13 Thread Keith Rollin
HmmmI'm kind of surprised no one's answered this by now. I wonder if there's something wrong with my email. :-( But the problem is pretty easily solved: it's the classic "when you're getting the length of a string so that you can allocate a buffer for it, be sure to add 1 to account for t

Re: pointer of pointer [not helpful]

2002-12-13 Thread Paul R.
"Keith Rollin" <[EMAIL PROTECTED]> wrote in message news:105128@palm-dev-forum... > > HmmmI'm kind of surprised no one's answered this by now. I > wonder if there's something wrong with my email. :-( I think it's the Friday syndrome. Everyone could see there was some sort of a pointer proble

Re: pointer of pointer [not helpful]

2002-12-13 Thread Keith Rollin
At 5:13 PM -0800 12/13/02, Paul R. wrote: BTW, your "AddArg(&argvP[0], "This");" doesn't seem right, either. Passing argvP, argvP+1, etc. to AddArg (char **argvP ...) would work, I should think. Aren't you making a pointer pointer pointer? No. "argvP[0]" is a "char*", so "&argvP[0]", is a "char

Re: pointer of pointer [not helpful]

2002-12-13 Thread Oliver
> I generally just type them into my mail program and > and compile them in my brain Now, does your brain generate native ARM code, or did they equip you with a PACEmaker so you could continue to generate MC68k code? ;-) Oliver __ Do you Yahoo!?

Re: pointer of pointer [not helpful]

2002-12-13 Thread Keith Rollin
At 7:59 PM -0800 12/13/02, Oliver wrote: > I generally just type them into my mail program and and compile them in my brain Now, does your brain generate native ARM code, or did they equip you with a PACEmaker so you could continue to generate MC68k code? ;-) I prefer MMIX. :-)

Re: pointer of pointer [not helpful]

2002-12-14 Thread Palm Dev Forum
- Gary Gorsline Easy Business Software == End of Message == - Original Message - From: "Keith Rollin" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 11:03 PM Su