/[LeafOK_CVS]/pvpgn-1.7.4/src/common/util.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/common/util.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jun 6 03:41:38 2006 UTC (19 years, 9 months ago) by sysadm
CVS Tags: pvpgn_1-7-4-0_MIL
Branch point for: GNU, MAIN
Content type: text/x-chdr
Initial revision

1 sysadm 1.1 /*
2     * Copyright (C) 1998,1999,2000 Ross Combs (rocombs@cs.nmsu.edu)
3     *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License
6     * as published by the Free Software Foundation; either version 2
7     * of the License, or (at your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful,
10     * but WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12     * GNU General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with this program; if not, write to the Free Software
16     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17     */
18    
19    
20     /*****/
21     #ifndef JUST_NEED_TYPES
22     #ifndef INCLUDED_UTIL_PROTOS
23     #define INCLUDED_UTIL_PROTOS
24    
25     #define JUST_NEED_TYPES
26     #include <stdio.h>
27     #undef JUST_NEED_TYPES
28    
29     extern int strstart(char const * full, char const * part) ;
30     extern char * file_get_line(FILE * fp) ;
31     extern char * strreverse(char * str);
32     extern int str_to_uint(char const * str, unsigned int * num);
33     extern int str_to_ushort(char const * str, unsigned short * num);
34     extern int str_print_term(FILE * fp, char const * str, unsigned int len, int allow_nl);
35     extern int str_get_bool(char const * str) ;
36     extern char const * seconds_to_timestr(unsigned int totsecs); /* FIXME: can this be marked pure? */
37     extern int clockstr_to_seconds(char const * clockstr, unsigned int * totsecs);
38     extern char * escape_fs_chars(char const * in, unsigned int len) ;
39     extern char * escape_chars(char const * in, unsigned int len) ;
40     extern char * unescape_chars(char const * in) ;
41     extern void str_to_hex(char * target, char * data, int datalen);
42     extern int hex_to_str(char const * source, char * data, int datalen);
43     extern char * buildpath(char const *root, const char *suffix);
44    
45     #endif
46     #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1