Quoting Juan Miguel Cacho <[EMAIL PROTECTED]>:

> #_ todos < unixtextfile > dostextfile
> I don't have it, I'll look for it in freshmeat.

Here is a version of todos.c

----------------todos.c---------------------
/* todos.c - 
   converts text files so that lines ending 
   with "\n" will end with "\r\n" instead */

#include <stdio.h>

int main() 
{   int c;
    while ( c=getchar(), c!=EOF ) {
        if ( c=='\n') putchar ('\r');
        putchar(c)
    }
}

------------------end-----------------------

PMana
    

--------
This mail sent through IMP: mail.ateneo.net
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to