Graphviz  2.41.20170721.1726
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.


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


void agxbinit (agxbuf *xb, unsigned int hint, unsigned char *init)
int agxbmore (agxbuf *xb, size_t ssz)
size_t agxbput_n (agxbuf *xb, const char *s, size_t ssz)
size_t 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,
size_t  ssz 

Definition at line 44 of file agxbuf.c.

References agxbuf::buf, agxbuf::dyna, agxbuf::eptr, N_GNEW, and agxbuf::ptr.

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().

size_t agxbput ( agxbuf xb,
const char *  s 
size_t agxbput_n ( agxbuf xb,
const char *  s,
size_t  ssz 

Definition at line 72 of file agxbuf.c.

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

Referenced by agxbput().