rtl433  UNKNOWN
RTL-433 utility
abuf.c File Reference

array buffer (string builder). More...

Functions

void abuf_init (abuf_t *buf, char *dst, size_t len)
 
void abuf_setnull (abuf_t *buf)
 
char * abuf_push (abuf_t *buf)
 
void abuf_pop (abuf_t *buf, char *end)
 
void abuf_cat (abuf_t *buf, const char *str)
 
int abuf_printf (abuf_t *buf, const char *restrict format,...)
 

Detailed Description

array buffer (string builder).

Copyright (C) 2018 Christian Zuckschwerdt

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Function Documentation

◆ abuf_cat()

void abuf_cat ( abuf_t buf,
const char *  str 
)

◆ abuf_init()

void abuf_init ( abuf_t buf,
char *  dst,
size_t  len 
)

◆ abuf_pop()

void abuf_pop ( abuf_t buf,
char *  end 
)

References abuf::left, and abuf::tail.

◆ abuf_printf()

int abuf_printf ( abuf_t buf,
const char *restrict  format,
  ... 
)

◆ abuf_push()

char* abuf_push ( abuf_t buf)

References abuf::tail.

◆ abuf_setnull()

void abuf_setnull ( abuf_t buf)

References abuf::head, abuf::left, and abuf::tail.