Quote:
Originally Posted by Geesu
Code:
char *pimp = " Yo YO YO\n\0";
|
delete the '\0' from your code.
if u write it in quotes, then it has automatically an '\0'.
in your pimp array u will see this:
Code:
char *pimp = { ' ', 'Y', 'o', ' ', 'Y', 'O', ' ', 'Y', 'O', '\n', '\0', '\0' };
You see, that u have 2 '\0'. Ok it costs only 1 byte more of RAM, but if u have to code on things like an micromaster, there you dont have much of ram^^.
so just write:
Code:
char *pimp = " Yo YO YO\n";