ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/vendor/pxys2-2.0.0/pxyservd/src/irc_string.h
Revision: 3252
Committed: Wed Apr 2 20:41:43 2014 UTC (11 years, 4 months ago) by michael
Content type: text/x-chdr
File size: 629 byte(s)
Log Message:
- Imported pxys2-2.0.0

File Contents

# Content
1 /*
2 * irc_string.h from Undernet ircu ircd_string.h
3 *
4 * $Id: irc_string.h,v 1.2 2003/12/30 21:03:55 mbuna Exp $
5 */
6 #ifndef INCLUDED_irc_string_h
7 #define INCLUDED_irc_string_h
8 #ifndef INCLUDED_irc_chattr_h
9 #include "irc_chattr.h"
10 #endif
11 #include <dbprim/dbprim.h>
12
13 extern int ircd_strcmp(const char *a, const char *b);
14 extern int ircd_strncmp(const char *a, const char *b, size_t n);
15
16 static inline unsigned long
17 ircd_strcomp(hash_table_t *table, db_key_t *key1, db_key_t *key2)
18 {
19 return (!(dk_len(key1) == dk_len(key2)
20 && ircd_strcmp(dk_key(key1), dk_key(key2)) == 0));
21 }
22
23 #endif /* INCLUDED_irc_string_h */