coastline 0.0.4
Loading...
Searching...
No Matches
xstdio.h File Reference

The formatter behind sprintf() and the state it passes to the conversion routines. More...

#include <stdarg.h>
#include <ultra64.h>
Include dependency graph for xstdio.h:

Go to the source code of this file.

Macros

#define FLAGS_SPACE   0x01
#define FLAGS_PLUS   0x02
#define FLAGS_MINUS   0x04
#define FLAGS_HASH   0x08
#define FLAGS_ZERO   0x10

Typedefs

typedef void *(* outfun) (void *arg, const char *s, size_t count)
 A routine that appends count characters to arg and returns the new position, or NULL.

Detailed Description

The formatter behind sprintf() and the state it passes to the conversion routines.

Macro Definition Documentation

◆ FLAGS_SPACE

#define FLAGS_SPACE   0x01

The space flag: a space before a positive number.

◆ FLAGS_PLUS

#define FLAGS_PLUS   0x02

The plus flag: a sign before every number.

◆ FLAGS_MINUS

#define FLAGS_MINUS   0x04

The minus flag: the field is aligned left.

◆ FLAGS_HASH

#define FLAGS_HASH   0x08

The hash flag: the alternative form of the conversion.

◆ FLAGS_ZERO

#define FLAGS_ZERO   0x10

The zero flag: the field is padded with zeros.

Typedef Documentation

◆ outfun

typedef void *(* outfun) (void *arg, const char *s, size_t count)

A routine that appends count characters to arg and returns the new position, or NULL.