Hi, it's me again...
I've some problems understanding why my program hang up; I've this code:
#include <stdio.h>
void foo ( char **bar )
{
*bar = "foobar"; /* Runs perfectly */
**bar = 'b'; /* Cause a crash */
}
int main()
{
char *bar;
foo ( &bar );
printf( "\n%s\n", bar );
return 0;
}
Why? Help me understand, please :)
Greetings,
NiNTENDU.