maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
Maug Virtual File API
Collaboration diagram for Maug Virtual File API:

Functions

off_t mfile_cursor (struct MFILE_CADDY *p_file)
off_t mfile_has_bytes (struct MFILE_CADDY *p_file)
MERROR_RETVAL mfile_read_block (struct MFILE_CADDY *p_file, uint8_t *buf, size_t buf_sz)
MERROR_RETVAL mfile_seek (struct MFILE_CADDY *p_file, off_t pos)
MERROR_RETVAL mfile_read_int (struct MFILE_CADDY *p_file, uint8_t *buf, size_t buf_sz, uint8_t flags)
MERROR_RETVAL mfile_read_line (struct MFILE_CADDY *p_file, char *buf, off_t buf_sz, uint8_t flags)
MERROR_RETVAL mfile_printf (struct MFILE_CADDY *p_file, uint8_t flags, const char *fmt,...)
MERROR_RETVAL mfile_write_block (struct MFILE_CADDY *p_f, const uint8_t *buf, size_t buf_sz)
MERROR_RETVAL mfile_vprintf (struct MFILE_CADDY *p_file, uint8_t flags, const char *fmt, va_list args)
 Callback to printf the given format string, replacing tokens from the providied pre-initialized list of args.

Detailed Description

Function Documentation

◆ mfile_vprintf()

MERROR_RETVAL mfile_vprintf ( struct MFILE_CADDY * p_file,
uint8_t flags,
const char * fmt,
va_list args )
related

Callback to printf the given format string, replacing tokens from the providied pre-initialized list of args.

Parameters
Pre-initializedlist of token format args.
Warning
The args parameter must have already been initialized with va_start!