Simple coroutine library / objects in plain C Snapshot
Classes | Typedefs | Enumerations | Functions
val.h File Reference
#include <cutils/array.h>
#include <stdarg.h>

Go to the source code of this file.

Classes

struct  tagVAL
struct  tagVALUES

Typedefs

typedef struct tagVAL VAL
typedef struct tagVALUES VALUES

Enumerations

enum  VAL_TYPE {
  VAL_TYPE_UINT8, VAL_TYPE_INT8, VAL_TYPE_UINT16, VAL_TYPE_INT16,
  VAL_TYPE_UINT32, VAL_TYPE_INT32, VAL_TYPE_UINT64, VAL_TYPE_INT64,
  VAL_TYPE_STRING, VAL_TYPE_PTR
}

Functions

M_INLINE int VALUES_init (VALUES *val)
 initialises a typed tuple of values object
M_INLINE void VALUES_free (VALUES *val)
 frees a typed tuple of values object
int VALUES_printv (VALUES *val, const char *format, va_list ap)
 insert typed tuple of values
int VALUES_scanv (VALUES *val, const char *format, va_list ap)
 retrieve typed tuple of values; like scanf receives varying number of arguments
M_INLINE int VALUES_print (VALUES *val, const char *format,...)
 set typed tuple of values; like prinf receives varying number of arguments
M_INLINE int VALUES_scan (VALUES *val, const char *format,...)
 retrieve typed tuple of values; like scanf receives varying number of arguments
M_INLINE VALVALUES_at (VALUES *val, size_t pos)
M_INLINE size_t VALUES_size (VALUES *val)