Hi to all,
I noticed that ascii input files to a Linux C program I share with colleagues (we're in research, not professional programming) weren't being properly scanned. After a few days of debugging, we came to the conclusion that this had to do with semi-invisible characters, likely being inserted in the ascii files when going through their Windows-based mail server. This causes mismatches when trying to do string comparisons.
What is the easiest way to 'clean' ascii files? ... instead of using standalone apps, are there any open-source C functions out there that can do the trick? Integrated C functions would be preferable, as we can move between platforms ... Obvioulsy, we can take the time to improvize our own, but 'safer' code would be nice ... even helpful advice. Thnx.
I noticed that ascii input files to a Linux C program I share with colleagues (we're in research, not professional programming) weren't being properly scanned. After a few days of debugging, we came to the conclusion that this had to do with semi-invisible characters, likely being inserted in the ascii files when going through their Windows-based mail server. This causes mismatches when trying to do string comparisons.
What is the easiest way to 'clean' ascii files? ... instead of using standalone apps, are there any open-source C functions out there that can do the trick? Integrated C functions would be preferable, as we can move between platforms ... Obvioulsy, we can take the time to improvize our own, but 'safer' code would be nice ... even helpful advice. Thnx.