C
CBFalconer
jaysome said:CBFalconer said:Roland said:... snip ...
That's understood. I just wanted to be sure that VS 2005 compiled
the program as C program, not as C++ program. Therefore I needed
program that was valid in C but not in C++.
#include <stdio.h>
int main(void) {
char class[24];
const char *new = "I am a C compiler";
strcpy(class, new);
puts(new);
return 0;
}
warning C4013: 'strcpy' undefined; assuming extern returning int
I think you need to include <string.h>. ... snip ...
You are correct.