00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_liboctave_utils_h)
00024 #define octave_liboctave_utils_h 1
00025
00026 #include <cstdio>
00027
00028 #include <iostream>
00029 #include <string>
00030
00031 #include "oct-cmplx.h"
00032
00033 extern int NINT (double x);
00034 extern double D_NINT (double x);
00035
00036 extern char *strsave (const char *);
00037
00038 extern void octave_putenv (const std::string&, const std::string&);
00039
00040 extern std::string octave_fgets (std::FILE *);
00041 extern std::string octave_fgetl (std::FILE *);
00042
00043 extern std::string octave_fgets (std::FILE *, bool& eof);
00044 extern std::string octave_fgetl (std::FILE *, bool& eof);
00045
00046 extern "C" int octave_gethostname (char *, int);
00047
00048 extern "C" void octave_qsort (void *base, size_t n, size_t size,
00049 int (*cmp) (const void *, const void *));
00050
00051 extern "C" char *oct_strptime (const char *buf, const char *format,
00052 struct tm *tm);
00053
00054 extern double octave_read_double (std::istream& is);
00055 extern Complex octave_read_complex (std::istream& is);
00056
00057 extern void octave_write_double (std::ostream& os, double dval);
00058 extern void octave_write_complex (std::ostream& os, const Complex& cval);
00059
00060 #endif
00061
00062
00063
00064
00065
00066