Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!think!ames!sdcsvax!ucbvax!decvax!tektronix!gvgpsa!gvgspd!mrk From: mrk@gvgspd.UUCP (Michael R. Kesti) Newsgroups: comp.sys.ibm.pc Subject: Re: PD Binary to Hex file Converter Message-ID: <291@gvgspd.UUCP> Date: Tue, 15-Sep-87 13:56:12 EDT Article-I.D.: gvgspd.291 Posted: Tue Sep 15 13:56:12 1987 Date-Received: Fri, 18-Sep-87 04:25:19 EDT References: <3346@sdcc6.ucsd.EDU> <2497@bellcore.bellcore.com> Reply-To: mrk@gvgspd.UUCP (Michael R. Kesti) Organization: Grass Valley Group, Grass Valley, CA Lines: 27 In article <2497@bellcore.bellcore.com> tr@wind.UUCP (tom reingold) writes: >I probably need some context to understand your query >full, but this is off the cuff ... > >#include >main() >{ > int c; > while ((c=getchar()) != EOF) > printf("%x", c); >} This is close, but bear in mind that HEX file formats typically include such mundane stuff such as record marks, address fields, byte counts, and checksums. I have found that a good source of documentation for these formats is the manual from our Data I/O 29B programmer. Armed with this information and Tom's program fragment, writing this function should not be too much trouble. -- =================================================================== Michael Kesti Grass Valley Group, Inc. P.O. Box 1114 Grass Valley, CA 95945 UUCP: ...!tektronix!gvgpsa!gvgspd!mrk