From 56caeb540795fb92f3289bbc4744e94da0c20654 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 2 Jan 2022 11:53:21 +0100 Subject: Turn common back into a normal directory (instead of a submodule) --- common/str.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 common/str.h (limited to 'common/str.h') diff --git a/common/str.h b/common/str.h new file mode 100644 index 0000000..e6ed70a --- /dev/null +++ b/common/str.h @@ -0,0 +1,17 @@ +#ifndef _UWU_COMMON_STR_H_ +#define _UWU_COMMON_STR_H_ + +#include +#include + +static inline char *asprintf_wrapper(const char *format, ...) +{ + va_list args; + va_start(args, format); + char *ptr; + vasprintf(&ptr, format, args); + va_end(args); + return ptr; +} + +#endif -- cgit v1.2.3