Remove control M from a text file in C

Posted by Werner on Stack Overflow See other posts from Stack Overflow or by Werner
Published on 2010-03-27T16:38:14Z Indexed on 2010/03/27 16:43 UTC
Read the original article Hit count: 134

Filed under:

Hi,

ist is possible? What would be the easiest way? I tried to compare in the input string character to character so

if(char([i]=="^M") char[i]=""

but it does not work.

By the way, if I were able to check it, what is the wistes substitution? to "" ?

Thanks

© Stack Overflow or respective owner

Related posts about c