View Single Post
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 05-08-2005 , 10:26  
Reply With Quote #5

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";
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet