gpp4
1.3.1
Main Page
Related Pages
Classes
Files
File List
File Members
src
ccp4_utils.h
Go to the documentation of this file.
1
/*
2
ccp4_utils.h: headers for utility functions.
3
Copyright (C) 2001 CCLRC, Charles Ballard
4
5
This library is free software: you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation, either
8
version 3 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with This library. If not, see
17
<http://www.gnu.org/licenses/>.
18
19
*/
20
26
#ifndef __CCP4_UTILS
27
#define __CCP4_UTILS
28
29
#include <string.h>
30
#include "
ccp4_types.h
"
31
#include "
library_file.h
"
32
33
#ifdef __cplusplus
34
namespace
CCP4 {
35
extern
"C"
{
36
#endif
37
38
/****************************************************************************
39
* Function prototypes *
40
****************************************************************************/
41
42
size_t
ccp4_utils_flength
(
char
*,
int
);
43
44
int
ccp4_utils_translate_mode_float
(
float
*,
const
void
*,
int
,
int
);
45
46
void
ccp4_utils_fatal (
const
char
*);
47
48
void
ccp4_utils_print
(
const
char
*message);
49
50
int
ccp4_utils_setenv
(
char
*);
51
52
/* turn on line buffering for stdout */
53
int
ccp4_utils_outbuf
(
void
);
54
55
/* turn off any buffering on stdin */
56
int
ccp4_utils_noinpbuf
(
void
);
57
58
union
float_uint_uchar
ccp4_nan
();
59
60
int
ccp4_utils_isnan
(
const
union
float_uint_uchar
*);
61
62
void
ccp4_utils_bml
(
int
,
union
float_uint_uchar
*);
63
64
void
ccp4_utils_wrg (
int
,
union
float_uint_uchar
*,
float
*);
65
66
void
ccp4_utils_hgetlimits
(
int
*,
float
*);
67
68
int
ccp4_utils_mkdir
(
const
char
*,
const
char
*);
69
70
int
ccp4_utils_chmod
(
const
char
*,
const
char
*);
71
72
void
*
ccp4_utils_malloc
(
size_t
);
73
74
void
*
ccp4_utils_realloc
(
void
*,
size_t
);
75
76
void
*
ccp4_utils_calloc
(
size_t
,
size_t
);
77
78
int
ccp4_file_size(
const
char
*);
79
80
char
*
ccp4_utils_username
(
void
);
81
82
char
*
ccp4_utils_basename
(
const
char
*filename);
83
84
char
*
ccp4_utils_pathname
(
const
char
*filename);
85
86
char
*
ccp4_utils_extension
(
const
char
*filename);
87
88
char
*
ccp4_utils_joinfilenames
(
char
*dir,
char
*file);
89
90
void
ccp4_utils_idate
(
int
*);
91
92
char
*
ccp4_utils_date
(
char
*);
93
94
void
ccp4_utils_itime
(
int
*);
95
96
char
*
ccp4_utils_time
(
char
*);
97
98
float
ccp4_utils_etime
(
float
*);
99
100
#if defined (_MSC_VER)
101
double
ccp4_erfc(
double
x );
102
#endif
103
104
/****************************************************************************
105
* End of prototypes *
106
*****************************************************************************/
107
#ifdef __cplusplus
108
}
109
}
110
#endif
111
112
#endif
/* __CCP4_UTILS */
113
114
/*
115
Local variables:
116
mode: font-lock
117
End:
118
*/
Generated by
1.8.1.1