Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.lang.c Subject: Re: Binary I/O on stdin/stdout? Message-ID: <8042@elsie.UUCP> Date: 9 Apr 88 19:10:25 GMT References: <302@goofy.megatest.UUCP> <225800017@uxe.cso.uiuc.edu> <844@cresswell.quintus.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 10 > If UNIX needed this facility, and if it used "b" to indicate binary mode, > FILE *binin = fdopen(fileno(stdin), "rb"); > FILE *binout= fdopen(fileno(stdout),"wb"); > /* use bin_in, bin_out instead of stdin, stdout */ > would do the job. Would this work in MSDOS? Whether or not it works in MSDOS, it wouldn't work in draft proposed ANSI C (which lacks an "fdopen" function). -- ado@ncifcrf.gov ADO is a trademark of Ampex.