Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!seismo!decuac!avolio From: avolio@decuac.DEC.COM (Frederick M. Avolio) Newsgroups: net.wanted.sources,net.unix Subject: Re: Does anyone have the source for a PD cp? Message-ID: <978@decuac.DEC.COM> Date: Tue, 1-Jul-86 14:28:20 EDT Article-I.D.: decuac.978 Posted: Tue Jul 1 14:28:20 1986 Date-Received: Wed, 2-Jul-86 06:29:05 EDT References: <220@killer.UUCP> Organization: ULTRIX Applications Center, MD Lines: 19 Xref: watmath net.wanted.sources:2484 net.unix:8481 Summary: You kidding? > Does anyone have the source code for a Public Domain cp? I'm wanting to > write one for my IBM AT to compile and use under DOS, but I don't have the > slightest idea how to do it right. Thanks in advance. Egad! You don't have a degree in computer science, do you? Ok... open first file (checking for errors ... bailout if necessary) creat second file (checking for errors ... bailout if necessary) while (read a buffer from first file) is greater than 0, write a buffer to second file (check for errors..) exit -- Fred @ DEC Ultrix Applications Center INET: avolio@decuac.DEC.COM * Fight the Fight * UUCP: {decvax,seismo,cbosgd}!decuac!avolio * Rescue the Unborn *