home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Developer CD v1.2
/
amidev_cd_12.iso
/
devcon
/
milan_1991
/
devcon91.2
/
network
/
socket
/
examples
/
ncopy.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-01
|
965b
|
42 lines
/* Amiga includes */
#include <exec/exec.h>
#include <dos/dos.h>
#include <dos/rdargs.h>
#include <dos/dostags.h>
#include <dos/dosextens.h>
#include <utility/tagitem.h>
/* Amiga prototypes and pragmas: */
#ifdef AZTEC_C
#include <functions.h>
#else
#include <clib/exec_protos.h>
#include <clib/dos_protos.h>
#endif
/* Socket library includes: */
#include <sys/types.h>
#include <sys/socket.h>
#include <ss/socket.h>
#include <netdb.h>
/* ANSI includes: */
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <errno.h>
/* Unix compatibility functions */
#define perror(x) printf("%s: %s\n", x, strerror(errno));
/*
** Length of buffer, also max length of filenames.
** Should be at least 255 so that long filenames can be handled.
** Ncopy buffers currently eat stack, so very large buffers should be
** avoided or the implementation should be changed to utilize non-stack
** buffers.
*/
#define LENGTH 1024