util: move string_is_safe() to string-util.[ch]

This commit is contained in:
Lennart Poettering
2015-10-26 21:26:33 +01:00
parent f4f15635ec
commit f3e2e81d53
4 changed files with 19 additions and 19 deletions

View File

@@ -168,3 +168,5 @@ void string_erase(char *x);
char *string_free_erase(char *s);
DEFINE_TRIVIAL_CLEANUP_FUNC(char *, string_free_erase);
#define _cleanup_string_free_erase_ _cleanup_(string_free_erasep)
bool string_is_safe(const char *p) _pure_;