>
> For what I understand, only the pointer is put on the stack I never
> heard of a compiler that creates temporary strings in the stack!!!
>
int function(char * cp) {
char str[] = "OMG Ponies!"
if ( cp == str ) {
return 9;
}
return 1+function(str);
}
/* what happens? */
Nathan