1 /* $Id: tools.h,v 1.12 2005/10/06 13:08:28 sys-op Exp $
2  * -------------------------------------------------------
3  * Copyright (c) 1998-2002 Sebastian Kienzl <zap@riot.org>
4  *           (c) 2002 Lee Hardy <lee@leeh.co.uk>
5  * -------------------------------------------------------
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  */
16 
17 #ifndef _TOOLS_H_
18 #define _TOOLS_H_
19 
20 void upcase( char *what );
21 void randname(char *randchar, int length);
22 
23 int pos( char *str, char what );
24 int lastpos( char *str, char what );
25 char *lastword( char *from );
26 char *nextword( char *string );
27 char * gettimestamp();
28 char *gettimestamp2();
29 void getuptime(time_t, int *, int *, int *, int *);
30 void report( char *format, ... );
31 void error( char *format, ... );
32 
33 #endif
34 
35