AUTHORS: add Nick Grauel
[netsniff-ng.git] / str.h
bloba362c53a6e1e236d892e59a8a6373954c00f5bea
1 #ifndef STR_H
2 #define STR_H
4 #include <stdlib.h>
6 #include "built_in.h"
8 extern size_t strlcpy(char *dest, const char *src, size_t size);
9 extern int slprintf(char *dst, size_t size, const char *fmt, ...) __check_format_printf(3, 4);
10 extern int slprintf_nocheck(char *dst, size_t size, const char *fmt, ...);
11 extern char *strtrim_right(char *p, char c);
12 extern noinline void *xmemset(void *s, int c, size_t n);
13 extern char *argv2str(int startind, int argc, char **argv);
14 extern char **argv_insert(char **argv, size_t *count, const char *str);
15 extern void argv_free(char **argv);
16 extern int str2mac(const char *str, uint8_t *mac, size_t len);
17 extern char *str2fqdn(const char *str);
19 #endif /* STR_H */