*/
/* https://git.datadissipation.net */
-#ifndef ASPRINTF_H_
- #define ASPRINTF_H_ 1
+#ifndef LCE_ASPRINTF_H
+ #define LCE_ASPRINTF_H 1
- #ifdef ASPRINTF_INCLUDE_LIBC
+ #ifdef LCE_ASPRINTF_INCLUDE_LIBC
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
- #endif /* ASPRINTF_INCLUDE_LIBC */
+ #endif /* LCE_ASPRINTF_INCLUDE_LIBC */
#ifndef HAVE_ASPRINTF
#define HAVE_ASPRINTF 1
- #define asprintf i_asprintf_
- #define vasprintf i_vasprintf_
-int i_vasprintf_(char **strp, const char *fmt, va_list ap);
-int i_asprintf_(char **strp, const char *fmt, ...);
+ #define asprintf lce_asprintf_
+ #define vasprintf lce_vasprintf_
+int lce_vasprintf_(char **strp, const char *fmt, va_list ap);
+int lce_asprintf_(char **strp, const char *fmt, ...);
#endif /* !HAVE_ASPRINTF */
- #ifdef ASPRINTF_IMPLEMENTATION
+ #ifdef LCE_ASPRINTF_IMPLEMENTATION
int
-i_vasprintf_(char **strp, const char *fmt, va_list ap)
+lce_vasprintf_(char **strp, const char *fmt, va_list ap)
{
int size;
va_list tp;
}
int
-i_asprintf_(char **strp, const char *fmt, ...)
+lce_asprintf_(char **strp, const char *fmt, ...)
{
int ret;
va_list ap;
va_start(ap, fmt);
- ret = i_vasprintf_(strp, fmt, ap);
+ ret = lce_vasprintf_(strp, fmt, ap);
va_end(ap);
return ret;
}
- #endif /* ASPRINTF_IMPLEMENTATION */
-#endif /* !ASPRINTF_H_ */
+ #endif /* LCE_ASPRINTF_IMPLEMENTATION */
+#endif /* !LCE_ASPRINTF_H */