rtl433
UNKNOWN
RTL-433 utility
|
array buffer (string builder). More...
Go to the source code of this file.
Data Structures | |
struct | abuf |
Typedefs | |
typedef struct abuf | abuf_t |
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,...) |
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.
void abuf_cat | ( | abuf_t * | buf, |
const char * | str | ||
) |
References abuf::left, strlen(), and abuf::tail.
Referenced by format_jsons_array(), and format_jsons_object().
void abuf_init | ( | abuf_t * | buf, |
char * | dst, | ||
size_t | len | ||
) |
References abuf::head, abuf::left, and abuf::tail.
Referenced by data_print_jsons(), and print_syslog_data().
void abuf_pop | ( | abuf_t * | buf, |
char * | end | ||
) |
References abuf::left, and abuf::tail.
int abuf_printf | ( | abuf_t * | buf, |
const char *restrict | format, | ||
... | |||
) |
References abuf::left, and abuf::tail.
Referenced by format_jsons_double(), format_jsons_int(), and print_syslog_data().
char* abuf_push | ( | abuf_t * | buf | ) |
References abuf::tail.
void abuf_setnull | ( | abuf_t * | buf | ) |
References abuf::head, abuf::left, and abuf::tail.