summaryrefslogtreecommitdiffstats
path: root/include/stringop.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stringop.h')
-rw-r--r--include/stringop.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/stringop.h b/include/stringop.h
index 7c29a745..e7f58011 100644
--- a/include/stringop.h
+++ b/include/stringop.h
@@ -1,5 +1,6 @@
1#ifndef _SWAY_STRINGOP_H 1#ifndef _SWAY_STRINGOP_H
2#define _SWAY_STRINGOP_H 2#define _SWAY_STRINGOP_H
3#include <stdlib.h>
3#include "list.h" 4#include "list.h"
4 5
5#if !HAVE_DECL_SETENV 6#if !HAVE_DECL_SETENV
@@ -14,6 +15,10 @@ char *strip_whitespace(char *str);
14char *strip_comments(char *str); 15char *strip_comments(char *str);
15void strip_quotes(char *str); 16void strip_quotes(char *str);
16 17
18// strcat that does nothing if dest or src is NULL
19char *lenient_strcat(char *dest, const char *src);
20char *lenient_strncat(char *dest, const char *src, size_t len);
21
17// strcmp that also handles null pointers. 22// strcmp that also handles null pointers.
18int lenient_strcmp(char *a, char *b); 23int lenient_strcmp(char *a, char *b);
19 24