One of the biggest problems I'm having with C is the understanding of pointers and memory allocation.
What is the difference between:
buffer = malloc ( 1000 * sizeof(char) );
What is the string length of str? Anything wrong with the below?
str = "abc";