/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * This file is distributed subject to a Software License Agreement found * in the file LICENSE that is included with this distribution. \*************************************************************************/ /* routines: fill_double_array(), fill_long_array() * fill_int_array(), fill_short_array(), * fill_float_array() * * Michael Borland, 1990 $Log: fill_array.c,v $ Revision 1.4 2003/01/08 20:06:51 borland Fixed problem in a comment. Revision 1.3 2002/08/14 16:06:08 soliday Added Open License Revision 1.2 1995/09/05 21:17:28 saunders First test release of the SDDS1.5 package. */ #include "mdb.h" void fill_double_array(double *array, long n, double value) { while (--n>=0) array[n] = value; } void fill_float_array(float *array, long n, float value) { while (--n>=0) array[n] = value; } void fill_long_array(long *array, long n, long value) { while (--n>=0) array[n] = value; } void fill_int_array(int *array, long n, int value) { while (--n>=0) array[n] = value; } void fill_short_array(short *array, long n, short value) { while (--n>=0) array[n] = value; }