355 #ifndef WCSLIB_WCSUTIL
356 #define WCSLIB_WCSUTIL
367 int wcsutil_allEq (
int nvec,
int nelem,
const double *first);
368 int wcsutil_Eq(
int nelem,
double tol,
const double *arr1,
370 int wcsutil_intEq(
int nelem,
const int *arr1,
const int *arr2);
371 int wcsutil_strEq(
int nelem,
char (*arr1)[72],
char (*arr2)[72]);
374 void wcsutil_setBit(
int nelem,
const int *sel,
int bits,
int *array);
Store for DPja and DQia keyvalues.
Definition: dis.h:937
int wcsutil_intEq(int nelem, const int *arr1, const int *arr2)
Test for equality of two int arrays.
void wcsutil_null_fill(int n, char c[])
Fill a character string with NULLs.
int wcsutil_strEq(int nelem, char(*arr1)[72], char(*arr2)[72])
Test for equality of two string arrays.
void wcsutil_setBit(int nelem, const int *sel, int bits, int *array)
Set bits in selected elements of an array.
int wcsutil_dpkey_int(const struct dpkey *dp)
Get the data value in a dpkey struct as int.
int wcsutil_allEq(int nvec, int nelem, const double *first)
Test for equality of a particular vector element.
void wcsutil_setAll(int nvec, int nelem, double *first)
Set a particular vector element.
int wcsutil_Eq(int nelem, double tol, const double *arr1, const double *arr2)
Test for equality of two double arrays.
void wcsutil_blank_fill(int n, char c[])
Fill a character string with blanks.
void wcsutil_double2str(char *buf, const char *format, double value)
Translate double to string ignoring the locale.
char * wcsutil_fptr2str(int(*func)(void), char hext[19])
Translate pointer-to-function to string.
void wcsutil_setAli(int nvec, int nelem, int *first)
Set a particular vector element.
int wcsutil_str2double(const char *buf, const char *format, double *value)
Translate string to a double, ignoring the locale.
double wcsutil_dpkey_double(const struct dpkey *dp)
Get the data value in a dpkey struct as double.