AnsweredAssumed Answered

Problem with scanf() function

Question asked by Renjith Vamanan on Feb 19, 2014
Latest reply on Feb 19, 2014 by ZhangJennie



I am working on a bare board project for TWR-K60 board. Console IO component is added from the Processor Expert.When I use scanf to read a string, I am missing the first character in the string. But with gets() I am able to read string without any issues. What could be the possible issue ?


Source code is as simple as


printf("Enter a String");
scanf("%s", str);
printf("\nString : %s", str);


Anybody had such a problem before ?


Best regards,