Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

copy an array in c

Name: Anonymous 2007-03-12 22:30 ID:016HOAcL

I have a function, it accepts a char**, what is the quickest and most efficient way of making a local copy of the array in the function scope?

That is, i have , for example:

void funk(char **x){

char **b;

/*How do i make a separate copy of x to b?*/
}

Take pity on me internets, I'm a noob :) Thanks.

Name: Anonymous 2007-03-14 19:48 ID:Cv044S7v

>>28
Normally I'd take you up on this statement on any other message board but the unfortunate fact is that a good percentage of the posts here are blatant trolls.

Not that there's anything wrong with that, it's just there isn't much of a reason to be factual because demonstrating your knowledge is usually ego-driven. Since we're on an anonymous message board we have nothing to associate with our ego so it's much easier to let things like that by and also say, "No, cock sucker, you're wrong."

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List