trio.h File Reference

#include "triodef.h"
#include <stdio.h>
#include <stdlib.h>
#include <varargs.h>

Go to the source code of this file.

Defines

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

Typedefs

typedef int trio_instream_t TRIO_PROTO ((trio_pointer_t))
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

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


Define Documentation

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

Definition at line 67 of file trio.h.

#define TRIO_ERROR_NAME (  )     trio_strerror(x)

Definition at line 69 of file trio.h.

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

Definition at line 68 of file trio.h.


Typedef Documentation

typedef int trio_instream_t TRIO_PROTO((trio_pointer_t))

Definition at line 72 of file trio.h.

TRIO_STRING_PUBLIC char *trio_xstring_substring TRIO_PROTO

Definition at line 71 of file trio.h.


Enumeration Type Documentation

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.


Function Documentation

void trio_locale_set_grouping TRIO_PROTO ( (char *grouping)   ) 

void trio_locale_set_thousand_separator TRIO_PROTO ( (char *thousandSeparator)   ) 

void trio_locale_set_decimal_point TRIO_PROTO ( (char *decimalPoint)   ) 

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

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

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

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

int trio_vcscanf TRIO_PROTO ( (trio_instream_t stream, trio_pointer_t closure, 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_vasprintf TRIO_PROTO ( (char **ret, TRIO_CONST char *format, va_list args)   ) 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TRIO_CONST char* trio_strerror TRIO_PROTO ( (int)   ) 

footer


 SourceForge.net Logo