psychedelic_fur
10-09-2001, 06:30 AM
Hi Friends,
can anyone tell me why does the following code crashes
void init (char** ptr, char initchar, int len )
{
memset ( *ptr, initchar, len );
}
void main()
{
char ary[10];
init( (char**)&ary, 'b', 10 );
}
can anyone tell me why does the following code crashes
void init (char** ptr, char initchar, int len )
{
memset ( *ptr, initchar, len );
}
void main()
{
char ary[10];
init( (char**)&ary, 'b', 10 );
}