tool.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * ngIRCd -- The Next Generation IRC Daemon
  3. * Copyright (c)2001-2010 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. #ifndef __tool_h__
  12. #define __tool_h__
  13. /**
  14. * @file
  15. * Tool functions (Header)
  16. */
  17. #include "portab.h"
  18. #ifdef HAVE_ARPA_INET_H
  19. # include <arpa/inet.h>
  20. #else
  21. # define PF_INET AF_INET
  22. #endif
  23. GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
  24. GLOBAL void ngt_TrimStr PARAMS((char *String ));
  25. GLOBAL char *ngt_UpperStr PARAMS((char *String ));
  26. GLOBAL char *ngt_LowerStr PARAMS((char *String ));
  27. #ifdef SYSLOG
  28. GLOBAL const char *ngt_SyslogFacilityName PARAMS((int Facility));
  29. GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility));
  30. #endif
  31. #endif
  32. /* -eof- */