ReactOS 0.4.16-dev-336-gb667d82
trio.h File Reference
#include "triodef.h"
#include <stdio.h>
#include <stdlib.h>
#include <varargs.h>
Include dependency graph for trio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRIO_ERROR_CODE(x)   ((-(x)) & 0x00FF)
 
#define TRIO_ERROR_POSITION(x)   ((-(x)) >> 8)
 
#define TRIO_ERROR_NAME(x)   trio_strerror(x)
 

Typedefs

typedef int trio_outstream_t TRIO_PROTO((trio_pointer_t, int))
 

Enumerations

enum  {
  TRIO_EOF = 1 , TRIO_EINVAL = 2 , TRIO_ETOOMANY = 3 , TRIO_EDBLREF = 4 ,
  TRIO_EGAP = 5 , TRIO_ENOMEM = 6 , TRIO_ERANGE = 7 , TRIO_ERRNO = 8 ,
  TRIO_ECUSTOM = 9
}
 

Functions

TRIO_CONST char *trio_strerror TRIO_PROTO ((int))
 
int trio_printf TRIO_PROTO ((TRIO_CONST char *format,...))
 
int trio_vprintf TRIO_PROTO ((TRIO_CONST char *format, va_list args))
 
int trio_printfv TRIO_PROTO ((TRIO_CONST char *format, void **args))
 
int trio_fprintf TRIO_PROTO ((FILE *file, TRIO_CONST char *format,...))
 
int trio_vfprintf TRIO_PROTO ((FILE *file, TRIO_CONST char *format, va_list args))
 
int trio_fprintfv TRIO_PROTO ((FILE *file, TRIO_CONST char *format, void **args))
 
int trio_dprintf TRIO_PROTO ((int fd, TRIO_CONST char *format,...))
 
int trio_vdprintf TRIO_PROTO ((int fd, TRIO_CONST char *format, va_list args))
 
int trio_dprintfv TRIO_PROTO ((int fd, TRIO_CONST char *format, void **args))
 
int trio_cprintf TRIO_PROTO ((trio_outstream_t stream, trio_pointer_t closure, TRIO_CONST char *format,...))
 
int trio_vcprintf TRIO_PROTO ((trio_outstream_t stream, trio_pointer_t closure, TRIO_CONST char *format, va_list args))
 
int trio_cprintfv TRIO_PROTO ((trio_outstream_t stream, trio_pointer_t closure, TRIO_CONST char *format, void **args))
 
int trio_sprintf TRIO_PROTO ((char *buffer, TRIO_CONST char *format,...))
 
int trio_vsprintf TRIO_PROTO ((char *buffer, TRIO_CONST char *format, va_list args))
 
int trio_sprintfv TRIO_PROTO ((char *buffer, TRIO_CONST char *format, void **args))
 
int trio_snprintf TRIO_PROTO ((char *buffer, size_t max, TRIO_CONST char *format,...))
 
int trio_vsnprintf TRIO_PROTO ((char *buffer, size_t bufferSize, TRIO_CONST char *format, va_list args))
 
int trio_snprintfv TRIO_PROTO ((char *buffer, size_t bufferSize, TRIO_CONST char *format, void **args))
 
int trio_asprintf TRIO_PROTO ((char **ret, TRIO_CONST char *format,...))
 
int trio_vasprintf TRIO_PROTO ((char **ret, TRIO_CONST char *format, va_list args))
 
int trio_cscanf TRIO_PROTO ((trio_instream_t stream, trio_pointer_t closure, TRIO_CONST char *format,...))
 
int trio_vcscanf TRIO_PROTO ((trio_instream_t stream, trio_pointer_t closure, TRIO_CONST char *format, va_list args))
 
int trio_cscanfv TRIO_PROTO ((trio_instream_t stream, trio_pointer_t closure, TRIO_CONST char *format, void **args))
 
int trio_sscanf TRIO_PROTO ((TRIO_CONST char *buffer, TRIO_CONST char *format,...))
 
int trio_vsscanf TRIO_PROTO ((TRIO_CONST char *buffer, TRIO_CONST char *format, va_list args))
 
int trio_sscanfv TRIO_PROTO ((TRIO_CONST char *buffer, TRIO_CONST char *format, void **args))
 
void trio_locale_set_decimal_point TRIO_PROTO ((char *decimalPoint))
 
void trio_locale_set_thousand_separator TRIO_PROTO ((char *thousandSeparator))
 
void trio_locale_set_grouping TRIO_PROTO ((char *grouping))
 

Macro Definition Documentation

◆ TRIO_ERROR_CODE

#define TRIO_ERROR_CODE (   x)    ((-(x)) & 0x00FF)

Definition at line 67 of file trio.h.

◆ TRIO_ERROR_NAME

#define TRIO_ERROR_NAME (   x)    trio_strerror(x)

Definition at line 69 of file trio.h.

◆ TRIO_ERROR_POSITION

#define TRIO_ERROR_POSITION (   x)    ((-(x)) >> 8)

Definition at line 68 of file trio.h.

Typedef Documentation

◆ TRIO_PROTO

typedef int trio_instream_t TRIO_PROTO((trio_pointer_t))

Definition at line 71 of file trio.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRIO_EOF 
TRIO_EINVAL 
TRIO_ETOOMANY 
TRIO_EDBLREF 
TRIO_EGAP 
TRIO_ENOMEM 
TRIO_ERANGE 
TRIO_ERRNO 
TRIO_ECUSTOM 

Definition at line 54 of file trio.h.

54 {
55 TRIO_EOF = 1,
56 TRIO_EINVAL = 2,
57 TRIO_ETOOMANY = 3,
58 TRIO_EDBLREF = 4,
59 TRIO_EGAP = 5,
60 TRIO_ENOMEM = 6,
61 TRIO_ERANGE = 7,
62 TRIO_ERRNO = 8,
63 TRIO_ECUSTOM = 9
64};
@ TRIO_ERANGE
Definition: trio.h:61
@ TRIO_ERRNO
Definition: trio.h:62
@ TRIO_ETOOMANY
Definition: trio.h:57
@ TRIO_EDBLREF
Definition: trio.h:58
@ TRIO_EINVAL
Definition: trio.h:56
@ TRIO_EOF
Definition: trio.h:55
@ TRIO_ENOMEM
Definition: trio.h:60
@ TRIO_EGAP
Definition: trio.h:59
@ TRIO_ECUSTOM
Definition: trio.h:63

Function Documentation

◆ TRIO_PROTO() [1/30]

int trio_vasprintf TRIO_PROTO ( (char **ret, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [2/30]

int trio_asprintf TRIO_PROTO ( (char **ret, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [3/30]

int trio_vsnprintf TRIO_PROTO ( (char *buffer, size_t bufferSize, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [4/30]

int trio_snprintfv TRIO_PROTO ( (char *buffer, size_t bufferSize, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [5/30]

int trio_snprintf TRIO_PROTO ( (char *buffer, size_t max, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [6/30]

int trio_vsprintf TRIO_PROTO ( (char *buffer, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [7/30]

int trio_sprintfv TRIO_PROTO ( (char *buffer, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [8/30]

int trio_sprintf TRIO_PROTO ( (char *buffer, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [9/30]

void trio_locale_set_decimal_point TRIO_PROTO ( (char *decimalPoint)  )

◆ TRIO_PROTO() [10/30]

void trio_locale_set_grouping TRIO_PROTO ( (char *grouping)  )

◆ TRIO_PROTO() [11/30]

void trio_locale_set_thousand_separator TRIO_PROTO ( (char *thousandSeparator)  )

◆ TRIO_PROTO() [12/30]

int trio_vfprintf TRIO_PROTO ( (FILE *file, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [13/30]

int trio_fprintfv TRIO_PROTO ( (FILE *file, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [14/30]

int trio_fprintf TRIO_PROTO ( (FILE *file, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [15/30]

int trio_vdprintf TRIO_PROTO ( (int fd, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [16/30]

int trio_dprintfv TRIO_PROTO ( (int fd, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [17/30]

int trio_dprintf TRIO_PROTO ( (int fd, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [18/30]

TRIO_CONST char *trio_strerror TRIO_PROTO ( (int )

◆ TRIO_PROTO() [19/30]

int trio_vsscanf TRIO_PROTO ( (TRIO_CONST char *buffer, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [20/30]

int trio_sscanfv TRIO_PROTO ( (TRIO_CONST char *buffer, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [21/30]

int trio_sscanf TRIO_PROTO ( (TRIO_CONST char *buffer, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [22/30]

int trio_vprintf TRIO_PROTO ( (TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [23/30]

int trio_printfv TRIO_PROTO ( (TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [24/30]

int trio_printf TRIO_PROTO ( (TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [25/30]

int trio_vcscanf TRIO_PROTO ( (trio_instream_t stream, trio_pointer_t closure, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [26/30]

int trio_cscanfv TRIO_PROTO ( (trio_instream_t stream, trio_pointer_t closure, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [27/30]

int trio_cscanf TRIO_PROTO ( (trio_instream_t stream, trio_pointer_t closure, TRIO_CONST char *format,...)  )

◆ TRIO_PROTO() [28/30]

int trio_vcprintf TRIO_PROTO ( (trio_outstream_t stream, trio_pointer_t closure, TRIO_CONST char *format, va_list args )

◆ TRIO_PROTO() [29/30]

int trio_cprintfv TRIO_PROTO ( (trio_outstream_t stream, trio_pointer_t closure, TRIO_CONST char *format, void **args )

◆ TRIO_PROTO() [30/30]

int trio_cprintf TRIO_PROTO ( (trio_outstream_t stream, trio_pointer_t closure, TRIO_CONST char *format,...)  )