Wednesday, April 18, 2007

C char array output problem.

The strange characters following the correct ones is caused by the lack of ending character ('\o') for a char array.

solution: strncpy

No comments: