Article View: net.wanted.sources
Article #1506Re: Does anyone have the source for a PD cp?
From: Frederick M. Avolio
Date: Tue, 01 Jul 1986 18:28
Date: Tue, 01 Jul 1986 18:28
19 lines
1246 bytes
1246 bytes
> 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 *
Technical Details
Message-ID:
<978@decuac.DEC.COM>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!seismo!decuac!avolioReferences:
<220@killer.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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 Summary: You kidding?