1967
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1967
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
1967
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_liboctave_utils_h) |
|
25 #define octave_liboctave_utils_h 1 |
|
26 |
2926
|
27 #include <cstdio> |
|
28 |
4130
|
29 #include <iostream> |
2926
|
30 #include <string> |
|
31 |
4130
|
32 #include "oct-cmplx.h" |
5275
|
33 #include "oct-types.h" |
4130
|
34 |
5275
|
35 extern octave_idx_type NINTbig (double x); |
1967
|
36 extern int NINT (double x); |
|
37 extern double D_NINT (double x); |
|
38 |
2926
|
39 extern char *strsave (const char *); |
|
40 |
3504
|
41 extern void octave_putenv (const std::string&, const std::string&); |
2926
|
42 |
3504
|
43 extern std::string octave_fgets (std::FILE *); |
4527
|
44 extern std::string octave_fgetl (std::FILE *); |
2926
|
45 |
4527
|
46 extern std::string octave_fgets (std::FILE *, bool& eof); |
|
47 extern std::string octave_fgetl (std::FILE *, bool& eof); |
3970
|
48 |
3803
|
49 extern "C" int octave_gethostname (char *, int); |
|
50 |
3613
|
51 extern "C" void octave_qsort (void *base, size_t n, size_t size, |
|
52 int (*cmp) (const void *, const void *)); |
|
53 |
3706
|
54 extern "C" char *oct_strptime (const char *buf, const char *format, |
|
55 struct tm *tm); |
|
56 |
4130
|
57 extern double octave_read_double (std::istream& is); |
|
58 extern Complex octave_read_complex (std::istream& is); |
|
59 |
4902
|
60 extern void octave_write_double (std::ostream& os, double dval); |
|
61 extern void octave_write_complex (std::ostream& os, const Complex& cval); |
4130
|
62 |
1967
|
63 #endif |
|
64 |
|
65 /* |
|
66 ;;; Local Variables: *** |
|
67 ;;; mode: C++ *** |
|
68 ;;; End: *** |
|
69 */ |