xbot/lib/util.h

24 lines
418 B
C
Raw Normal View History

2015-03-24 10:12:35 +00:00
/*
* xbot: Just another IRC bot
*
* Written by Aaron Blakely <aaron@ephasic.org>
**/
#ifndef UTIL_H
#define UTIL_H
2024-02-13 07:22:10 +00:00
#ifdef _WIN32
#define USE_MY_STRLCPY 1
#endif
2015-03-24 10:12:35 +00:00
void eprint(char *fmt, ...);
2024-02-13 07:22:10 +00:00
#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 38)) || defined(_WIN32)
2015-03-24 10:12:35 +00:00
void strlcpy(char *to, const char *from, int len);
2024-02-13 07:22:10 +00:00
#endif
2015-03-24 10:12:35 +00:00
char *skip(char *s, char c);
void trim(char *s);
2024-02-13 07:22:10 +00:00
#endif