From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- unix/as.sunos/amovc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 unix/as.sunos/amovc.c (limited to 'unix/as.sunos/amovc.c') diff --git a/unix/as.sunos/amovc.c b/unix/as.sunos/amovc.c new file mode 100644 index 00000000..ecba2573 --- /dev/null +++ b/unix/as.sunos/amovc.c @@ -0,0 +1,17 @@ +/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + */ + +#define import_spp +#define import_knames +#include + +/* AMOVC -- Copy a block of memory. + * [Specially optimized for Sun/IRAF]. + */ +AMOVC (a, b, n) +XCHAR *a, *b; +XINT *n; +{ + if (a != b) + memmove ((char *)b, (char *)a, *n * sizeof(*a)); +} -- cgit