30#include <mstdlib/base/m_defs.h>
31#include <mstdlib/base/m_types.h>
32#include <mstdlib/base/m_fs.h>
38M_BEGIN_IGNORE_REDECLARATIONS
39#if M_BLACKLIST_FUNC == 1
44 M_DEPRECATED_FOR(
M_printf,
int printf(
const char *format, ...))
50 M_DEPRECATED_FOR(
M_fprintf,
int fprintf(FILE *stream,
const char *format, ...))
56 M_DEPRECATED_FOR(M_sprintf,
int sprintf(
char *str,
const char *format, ...))
62 M_DEPRECATED_FOR(
M_snprintf,
int snprintf(
char *str,
size_t size,
const char *format, ...))
69 M_DEPRECATED_FOR(
M_vprintf,
int vprintf(
const char *format, va_list ap))
75 M_DEPRECATED_FOR(
M_vfprintf,
int vfprintf(FILE *stream,
const char *format, va_list ap))
81 M_DEPRECATED_FOR(M_vsprintf,
int vsprintf(
char *str,
const char *format, va_list ap))
87 M_DEPRECATED_FOR(
M_vsnprintf,
int vsnprintf(
char *str,
size_t size,
const char *format, va_list ap))
94 M_DEPRECATED_FOR(
M_asprintf,
int asprintf(
char **ret,
const char *fmt, ...) M_PRINTF(2,3))
100 M_DEPRECATED_FOR(
M_vasprintf,
int vasprintf(
char **ret,
const char *fmt, va_list ap))
103M_END_IGNORE_REDECLARATIONS
108# define M_PRIuPTR "llu"
110# define M_PRIuPTR "lu"
113#define M_PRIu64 "llu"
114#define M_PRId64 "lld"
201M_API ssize_t
M_vfprintf(FILE *stream,
const char *fmt, va_list ap);
208M_API ssize_t
M_fprintf(FILE *stream,
const char *fmt, ...) M_PRINTF(2,3) M_WARN_NONNULL(1) M_WARN_NONNULL(2);
241M_API ssize_t
M_vdprintf(
int fd, const
char *fmt, va_list ap);
248M_API ssize_t
M_dprintf(
int fd, const
char *fmt, ...) M_PRINTF(2,3) M_WARN_NONNULL(2);
267M_API ssize_t
M_printf(const
char *fmt, ...) M_PRINTF(1,2) M_WARN_NONNULL(1);
287M_API
size_t M_vsnprintf(
char *str,
size_t size, const
char *fmt, va_list ap);
294M_API
size_t M_snprintf(
char *buf,
size_t size, const
char *fmt, ...) M_PRINTF(3,4) M_WARN_NONNULL(3);
316M_API
size_t M_asprintf(
char **ret, const
char *fmt, ...) M_PRINTF(2,3) M_WARN_NONNULL(1) M_WARN_NONNULL(2);
338M_API
size_t M_bprintf(
M_buf_t *buf, const
char *fmt, ...) M_PRINTF(2,3) M_WARN_NONNULL(1) M_WARN_NONNULL(2);
struct M_buf M_buf_t
Definition: m_buf.h:77
ssize_t M_mdprintf(M_fs_file_t *fd, const char *fmt,...)
size_t M_snprintf(char *buf, size_t size, const char *fmt,...)
ssize_t M_fprintf(FILE *stream, const char *fmt,...)
size_t M_vasprintf(char **ret, const char *fmt, va_list ap)
ssize_t M_vprintf(const char *fmt, va_list ap)
size_t M_vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
ssize_t M_dprintf(int fd, const char *fmt,...)
ssize_t M_vdprintf(int fd, const char *fmt, va_list ap)
ssize_t M_vmdprintf(M_fs_file_t *fd, const char *fmt, va_list ap)
ssize_t M_vfprintf(FILE *stream, const char *fmt, va_list ap)
size_t M_asprintf(char **ret, const char *fmt,...)
ssize_t M_printf(const char *fmt,...)
size_t M_vbprintf(M_buf_t *buf, const char *fmt, va_list ap)
size_t M_bprintf(M_buf_t *buf, const char *fmt,...)
struct M_fs_file M_fs_file_t
Definition: m_fs.h:132