🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.wanted.sources
3 messages
3 total messages Started by Tad Marko Fri, 27 Jun 1986 05:27
Does anyone have the source for a PD cp?
#1505
Author: Tad Marko
Date: Fri, 27 Jun 1986 05:27
7 lines
814 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.

						Tad Marko

...!ihnp4!killer!tad
Re: Does anyone have the source for a PD cp?
#1506
Author: Frederick M. Avolio
Date: Tue, 01 Jul 1986 18:28
19 lines
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 *
Re: Re: Does anyone have the source for a PD cp?
#1512
Author: Darryl P. Wagoner
Date: Sat, 05 Jul 1986 04:27
31 lines
1817 bytes
> 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

That will not work if you have something like "cp file1 [file2 ...] target".
Althought I have to admit that even that is not too complex.  Since that
cp comes with unix I gather that the requester wants something more that 
just cp.  As in 4.2 BSD cp that has the -r option.  

Don't mind me it late and I am tried.


-- 
	Darryl Wagoner
	Raytheon Co.; Portsmouth RI; (401)-847-8000 x4089

best path             {allegra|gatech|mirror|raybed2}  ---------\
next best             {linus|ihnp4|pyrbos} ---------------------->!rayssd!dpw
if all else fails     {brunix|cci632} -------------------------/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads