Well I\'ve weird problem with printf(). It\'s outputting garbage on screen. It\'s kind of connected with memory I guess. Have a look:
printf()
char strin
Because C strings need to be NUL terminated. This means the last char of your string must be '\0'. This is how printf (and all other C string functions) know when a string is finished.
'\0'
printf