Hello,
I have question about a really strange behavior with the nightly build.
I would like to know if it due to C::B or the Compiler
Here is a little (and useless) piece of code which reproduce my problem
#include <windows.h>
#include <stdio.h>
void test(char* str, char c) {
int i = 0;
if ((c == 0x22) || (c == 0x5c)) c += 1; // Avoid the characters ", \
str = c;
}
int main(void)
{
char s[10] = "123456789";
test(s, 'Z');
MessageBoxA(0, s, "Info", 0);
return 0;
}
Create a MS DOS project and paste the code above.
Launch it and you will see that the char* s will be equal to 123456789 instead of Z23456789 :shock:
Now remove the comment
// Avoid the characters ", \ and it will work correctly
Is it a C::B bug or a Compiler bug?