2 * SPRTF - Log output utility
4 * Author: Geoff R. McLane <reports _at_ geoffair _dot_ info>
5 * License: GPL v2 (or later at your choice)
7 * Revision 1.0.1 2012/11/06 13:01:25 geoff
8 * Revision 1.0.0 2012/10/17 00:00:00 geoff
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
27 // Debug log file output
41 TIDY_EXPORT int add_std_out( int val );
42 TIDY_EXPORT int add_sys_time( int val );
43 TIDY_EXPORT int add_sys_date( int val );
45 TIDY_EXPORT int add_screen_out( int val );
46 TIDY_EXPORT int add_list_out( int val );
47 TIDY_EXPORT int add_append_log( int val );
49 TIDY_EXPORT int open_log_file( void );
50 TIDY_EXPORT void close_log_file( void );
51 TIDY_EXPORT void set_log_file( char * nf, int open );
52 TIDY_EXPORT char * get_log_file( void );
54 TIDY_EXPORT int MCDECL sprtf( const char *pf, ... );
55 #define M_MAX_SPRTF 2048
56 TIDY_EXPORT int direct_out_it( char *cp );
58 TIDY_EXPORT char *GetNxtBuf();
60 #define EndBuf(a) ( a + strlen(a) )
62 TIDY_EXPORT char *get_date_stg();
63 TIDY_EXPORT char *get_time_stg();
64 TIDY_EXPORT char *get_date_time_stg();
66 TIDY_EXPORT int gettimeofday(struct timeval *tp, void *tzp);
76 #endif // #ifndef _SPRTF_HXX_