[comp.lang.c] MS-DOS filters in Borland Turbo C: help request.

slores%gables.span@umigw.miami.edu (Stanislaw L. Olejniczak) (12/23/88)

I would LIKE to write a tee like program/filter for DOS.  The only thing I have
left is some way to determine whether the program is being used as a filter:
C> type myfile | tee
or as an executable
C> tee myfile
I am using Borland Turbo C 1.5 under MS-DOS 3.2.  Any suggestions will be
greatly appreciated.
(Any references to more detailed information about MS-DOS filters would also be
greatly appreciated).  Thanks
----
Joyful Holidays and a Happy New Year!
Stan Olejniczak           Internet:   slores%gables.span@umigw.miami.edu
University of Miami       UUCP:       {uunet!gould}!umbio!solejni
Miami, Florida, USA       Voice:      (305)-547-6005
My opinions cannot possibly represent the views of anyone else!

wilker@batcomputer.tn.cornell.edu (Clarence W. Wilkerson Jr.) (12/23/88)

 A count of 1 should mean either redirected input or
 as a piped filter. More than 1 would be another file
 which you have to digest.