tool.h 865 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * ngIRCd -- The Next Generation IRC Daemon
  3. * Copyright (c)2001-2008 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. * Tool functions (Header)
  12. */
  13. #ifndef __tool_h__
  14. #define __tool_h__
  15. #include "portab.h"
  16. #ifdef HAVE_ARPA_INET_H
  17. # include <arpa/inet.h>
  18. #else
  19. # define PF_INET AF_INET
  20. #endif
  21. GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
  22. GLOBAL void ngt_TrimStr PARAMS((char *String ));
  23. GLOBAL char *ngt_UpperStr PARAMS((char *String ));
  24. GLOBAL char *ngt_LowerStr PARAMS((char *String ));
  25. #endif
  26. /* -eof- */