Warm thanks to all who answered my question: 
>Dear Managers,
>
>Does anyone know how in C program, I can add the special charcter "^M"
>to the end of the line.
Summary:
        Just do something like this:
        printf("<line>\r\n");  or  printf("<line>\015\n");
       \r or \015 inserts the ^M.
 regards, 
 All above opinions are personal, unless stated otherwise.
-----------------------------------------------------------------
 Ran Zahor   - UNIX System Support | Email : ran_at_wiztec.co.il
 Wiztec Solutions Ltd              | Phone : (972)-9-526737 
 39 Hagalim Boulevard, P.O.B 2062  | Fax   : (972)-9-598744
 Herzlia 6120 ,  Israel            | 
-----------------------------------------------------------------
Received on Thu Sep 19 1996 - 12:06:00 NZST