From 123d035b8164999b086c08ed472cd83ead72599c Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 8 Sep 2024 18:53:33 +0200 Subject: Implement strformat --- src/util.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index d7cb6bd..770790d 100644 --- a/src/util.h +++ b/src/util.h @@ -8,15 +8,6 @@ #define unreachable() log_panic("Unreachable code"); -typedef struct { - char *key; - char *value; -} pair_t; - -void pair_copy(pair_t *copy, const pair_t *pair); - -void pair_free(pair_t *pair); - // Color representation normalized to [0, 1] // typedef struct { @@ -61,8 +52,6 @@ bool strfind(const char *string, const char *cases[]); size_t strprefix(const char *string, const char *prefix); -size_t strcount(const char *string, const char *subs[]); - -char *strformat(const char *string, const char *keys[], const char *values[]); +char *strformat(const char *string, char delim, const char *keys[], const char *values[]); #endif -- cgit v1.2.3