A
alkhoudri
Hello everybody,
I am working on a project which contains in one of its files a code
like the following :
char * CurrentString = "\0";
void function01()
{
...
strcpy(CurrentString, "aString");
...
}
And the application doesn't crash !!!
Do you have any idea why ?
For me, it's just out of the question to copy a string in an
unallocated space (pointed to by CurrentString in the above example).
For info, the compiler is CodeWarior for an embedded system.
Thank you in advance.
I am working on a project which contains in one of its files a code
like the following :
char * CurrentString = "\0";
void function01()
{
...
strcpy(CurrentString, "aString");
...
}
And the application doesn't crash !!!
Do you have any idea why ?
For me, it's just out of the question to copy a string in an
unallocated space (pointed to by CurrentString in the above example).
For info, the compiler is CodeWarior for an embedded system.
Thank you in advance.