0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
~2K People Reached
Favorite Forums
Favorite Tags
4 Posted Topics
if(fp1=NULL) You're setting fp1 to NULL, it should be: if(fp1==NULL)
Maybe, you're receiving in stdin the output generated by the execution of the proccess. Try to close stdin also... only guessing.
while(str[p] == ' ' || str[p] == '\n' || str[p] == '\r' || str[p] == '\r'){ p++; } Shouldn't you also verify the end of string character? -> '\0'
The End.
mad93