]> arthur.barton.de Git - ngircd-alex.git/blob - src/tool/tool.h
include <arpa/inet.h> inside tool.h
[ngircd-alex.git] / src / tool / tool.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * $Id: tool.h,v 1.5 2007/11/25 18:42:38 fw Exp $
12  *
13  * Tool functions (Header)
14  */
15
16
17 #ifndef __tool_h__
18 #define __tool_h__
19 #include "portab.h"
20
21 #ifdef HAVE_ARPA_INET_H
22 # include <arpa/inet.h>
23 #else
24 # define PF_INET AF_INET
25 #endif
26
27 GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
28
29 GLOBAL void ngt_TrimStr PARAMS((char *String ));
30
31 GLOBAL char *ngt_LowerStr PARAMS((char *String ));
32
33 GLOBAL bool ngt_IPStrToBin PARAMS((const char *ip_str, struct in_addr *inaddr));
34 #endif
35
36
37 /* -eof- */