diff options
Diffstat (limited to 'lib/bob/u8strpushstr.c')
-rw-r--r-- | lib/bob/u8strpushstr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bob/u8strpushstr.c b/lib/bob/u8strpushstr.c new file mode 100644 index 0000000..64b123d --- /dev/null +++ b/lib/bob/u8strpushstr.c @@ -0,0 +1,9 @@ +#include <string.h> + +#include "bob.h" + +struct u8str * +u8strpushstr(struct u8str *b, const char *s) +{ + return u8strpushu8(b, (struct u8view){.p = s, .len = strlen(s)}); +} |