tool.h 1022 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
  19. GLOBAL void ngt_TrimStr PARAMS((char *String ));
  20. GLOBAL char *ngt_UpperStr PARAMS((char *String ));
  21. GLOBAL char *ngt_LowerStr PARAMS((char *String ));
  22. GLOBAL char *ngt_RandomStr PARAMS((char *String, const size_t len));
  23. #ifdef SYSLOG
  24. GLOBAL const char *ngt_SyslogFacilityName PARAMS((int Facility));
  25. GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility));
  26. #endif
  27. #endif
  28. /* -eof- */