SyntaxFix
Write A Post
Hire A Developer
Questions
The pointer str is never allocated. It should be malloc'd before use.
str
malloc