Graphviz  2.39.20141217.0545
Macros | Functions
agxbuf.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <agxbuf.h>
Include dependency graph for agxbuf.c:

Go to the source code of this file.

Macros

#define N_GNEW(n, t)   (t*)malloc((n)*sizeof(t))
 

Functions

void agxbinit (agxbuf *xb, unsigned int hint, unsigned char *init)
 
int agxbmore (agxbuf *xb, unsigned int ssz)
 
int agxbput_n (agxbuf *xb, const char *s, unsigned int ssz)
 
int agxbput (agxbuf *xb, const char *s)
 
void agxbfree (agxbuf *xb)
 
int agxbpop (agxbuf *xb)
 

Macro Definition Documentation

#define N_GNEW (   n,
 
)    (t*)malloc((n)*sizeof(t))

Function Documentation

void agxbfree ( agxbuf xb)
void agxbinit ( agxbuf xb,
unsigned int  hint,
unsigned char *  init 
)
int agxbmore ( agxbuf xb,
unsigned int  ssz 
)

Definition at line 44 of file agxbuf.c.

References agxbuf::buf, agxbuf::dyna, agxbuf::eptr, N_GNEW, agxbuf::ptr, and realloc().

Referenced by agxbput_n().

int agxbpop ( agxbuf xb)

Definition at line 103 of file agxbuf.c.

References agxbuf::buf, and agxbuf::ptr.

Referenced by attach_attrs_and_arrows().

int agxbput ( agxbuf xb,
const char *  s 
)
int agxbput_n ( agxbuf xb,
const char *  s,
unsigned int  ssz 
)

Definition at line 72 of file agxbuf.c.

References agxbmore(), agxbuf::eptr, and agxbuf::ptr.

Referenced by agxbput().