BRL-CAD

Variable Length Strings. More...

#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <math.h>
#include "bio.h"
#include "bu/log.h"
#include "bu/vls.h"
#include "./vls_internals.h"
Include dependency graph for vls_vprintf.c:

Go to the source code of this file.

Macros

#define MISCINTMODS   (INTMAX_T | PTRDIFFT | SIZETINT)
 
#define SHORTINTMODS   (SHORTINT | SHHRTINT)
 
#define LONGINTMODS   (LONG_INT | LLONGINT)
 
#define ALL_INTMODS   (SHORTINTMODS | LONGINTMODS | MISCINTMODS)
 
#define ALL_DOUBLEMODS   (LONGDBLE)
 
#define ALL_LENGTHMODS   (ALL_INTMODS | ALL_DOUBLEMODS)
 

Functions

int format_part_status (const char c)
 
int handle_format_part (const int vp_part, vflags_t *f, const char c, const int print)
 
int handle_obsolete_format_char (const char c, const int print)
 
void bu_vls_vprintf (struct bu_vls *vls, const char *fmt, va_list ap)
 

Detailed Description

Variable Length Strings.

This structure provides support for variable length strings, freeing the programmer from concerns about having character arrays large enough to hold strings.

Assumption: libc-provided sprintf() function is safe to use in parallel, on parallel systems.

Definition in file vls_vprintf.c.

Macro Definition Documentation

#define MISCINTMODS   (INTMAX_T | PTRDIFFT | SIZETINT)

Definition at line 60 of file vls_vprintf.c.

#define SHORTINTMODS   (SHORTINT | SHHRTINT)

Definition at line 61 of file vls_vprintf.c.

#define LONGINTMODS   (LONG_INT | LLONGINT)

Definition at line 62 of file vls_vprintf.c.

#define ALL_INTMODS   (SHORTINTMODS | LONGINTMODS | MISCINTMODS)

Definition at line 63 of file vls_vprintf.c.

#define ALL_DOUBLEMODS   (LONGDBLE)

Definition at line 64 of file vls_vprintf.c.

#define ALL_LENGTHMODS   (ALL_INTMODS | ALL_DOUBLEMODS)

Definition at line 65 of file vls_vprintf.c.

Referenced by handle_format_part().

Function Documentation

int format_part_status ( const char  c)
int handle_format_part ( const int  vp_part,
vflags_t f,
const char  c,
const int  print 
)
int handle_obsolete_format_char ( const char  c,
const int  print 
)

Definition at line 269 of file vls_vprintf.c.

Referenced by bu_vls_vprintf(), and check_format_chars().