trafgen: Simplify ring size unit parsing
[netsniff-ng.git] / str.h
blob3ffb2b97a64d326bba21ecb7b1ece3db628a2e7b
1 #ifndef STR_H
2 #define STR_H
4 #include "built_in.h"
6 extern size_t strlcpy(char *dest, const char *src, size_t size);
7 extern int slprintf(char *dst, size_t size, const char *fmt, ...) __check_format_printf(3, 4);
8 extern int slprintf_nocheck(char *dst, size_t size, const char *fmt, ...);
9 extern char *strtrim_right(char *p, char c);
10 extern noinline void *xmemset(void *s, int c, size_t n);
11 extern char *argv2str(int startind, int argc, char **argv);
12 extern char **argv_insert(char **argv, size_t *count, const char *str);
13 extern void argv_free(char **argv);
15 #endif /* STR_H */