dunst/utils.h
Sascha Kruse db27662e78 Revert "replace string_to_argv() with g_strsplit()"
This reverts commit 023473ac2557f37d842c81c67192feac1f898eb8.

Conflicts:
	dunst.c
2013-03-25 13:55:18 +01:00

27 lines
866 B
C

/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
#ifndef UTIL_H
#define UTIL_H
/* replace all occurences of the character needle with the character replacement in haystack */
char *string_replace_char(char needle, char replacement, char *haystack);
/* replace all occurrences of needle with replacement in haystack */
char *string_replace_all(const char *needle, const char *replacement,
char *haystack);
/* replace needle with replacement in haystack */
char *string_replace(const char *needle, const char *replacement,
char *haystack);
char *string_append(char *a, const char *b, const char *sep);
char **string_to_argv(const char *s);
/* exit with an error message */
void die(char *msg, int exit_value);
int digit_count(int i);
#endif
/* vim: set ts=8 sw=8 tw=0: */