Notcurses 3.0.13
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
fbuf.h File Reference
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <inttypes.h>
#include "compat/compat.h"
#include "logging.h"
Include dependency graph for fbuf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fbuf
 

Macros

#define MAPFLAGS   0
 

Typedefs

typedef struct fbuf fbuf
 

Functions

 __attribute__ ((format(printf, 2, 3))) static inline int fbuf_printf(fbuf *f
 
const char va_start (va, fmt)
 
 va_end (va)
 
 if ((size_t) r >=f->size - f->used)
 
 assert (r >=0)
 

Variables

const char * fmt
 
int r = vsnprintf(f->buf + f->used, f->size - f->used, fmt, va)
 
used = r
 

Macro Definition Documentation

◆ MAPFLAGS

#define MAPFLAGS   0

Definition at line 43 of file fbuf.h.

Typedef Documentation

◆ fbuf

typedef struct fbuf fbuf

Function Documentation

◆ __attribute__()

static int __attribute__ ( (format(printf, 2, 3))  )
Here is the call graph for this function:

◆ assert()

assert ( r >=  0)

◆ if()

if ( (size_t) r >=f->size - f->  used)

Definition at line 228 of file fbuf.h.

228 {
229 return -1;
230 }

◆ va_end()

va_end ( va  )
Here is the caller graph for this function:

◆ va_start()

const char va_start ( va  ,
fmt   
)
Here is the caller graph for this function:

Variable Documentation

◆ fmt

const char* fmt

Definition at line 220 of file fbuf.h.

◆ r

return r = vsnprintf(f->buf + f->used, f->size - f->used, fmt, va)

Definition at line 226 of file fbuf.h.

◆ used

f used = r

Definition at line 232 of file fbuf.h.