00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00028 #ifndef __CCP4_UTILS
00029 #define __CCP4_UTILS
00030
00031 #include <string.h>
00032 #include "ccp4_types.h"
00033 #include "library_file.h"
00034
00035 #ifdef __cplusplus
00036 namespace CCP4 {
00037 extern "C" {
00038 #endif
00039
00040
00041
00042
00043
00044 size_t ccp4_utils_flength (char *, int);
00045
00046 int ccp4_utils_translate_mode_float(float *, const void *, int, int);
00047
00048 void ccp4_utils_fatal (const char *);
00049
00050 void ccp4_utils_print (const char *message);
00051
00052 int ccp4_utils_setenv (char *);
00053
00054
00055 int ccp4_utils_outbuf (void);
00056
00057
00058 int ccp4_utils_noinpbuf (void);
00059
00060 union float_uint_uchar ccp4_nan ();
00061
00062 int ccp4_utils_isnan (const union float_uint_uchar *);
00063
00064 void ccp4_utils_bml (int, union float_uint_uchar *);
00065
00066 void ccp4_utils_wrg (int, union float_uint_uchar *, float *);
00067
00068 void ccp4_utils_hgetlimits (int *, float *);
00069
00070 int ccp4_utils_mkdir (const char *, const char *);
00071
00072 int ccp4_utils_chmod (const char *, const char *);
00073
00074 void *ccp4_utils_malloc(size_t);
00075
00076 void *ccp4_utils_realloc(void *, size_t);
00077
00078 void *ccp4_utils_calloc(size_t, size_t);
00079
00080 int ccp4_file_size(const char *);
00081
00082 char *ccp4_utils_username(void);
00083
00084 char *ccp4_utils_basename(char *filename);
00085
00086 char *ccp4_utils_pathname(char *filename);
00087
00088 char *ccp4_utils_extension(char *filename);
00089
00090 char *ccp4_utils_joinfilenames(char *dir, char *file);
00091
00092 void ccp4_utils_idate (int *);
00093
00094 char *ccp4_utils_date(char *);
00095
00096 void ccp4_utils_itime (int *);
00097
00098 char *ccp4_utils_time(char *);
00099
00100 float ccp4_utils_etime (float *);
00101
00102 #if defined (_MSC_VER)
00103 double ccp4_erfc( double x );
00104 #endif
00105
00106
00107
00108
00109 #ifdef __cplusplus
00110 }
00111 }
00112 #endif
00113
00114 #endif
00115
00116
00117
00118
00119
00120