All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
txtbuf.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "txtbuf.h"

Functions

void tb_init (struct txtbuf *tb, char *txt, size_t txt_sz)
 
size_t tb_len (struct txtbuf *tb)
 
size_t tb_free (struct txtbuf *tb)
 
bool tb_put (struct txtbuf *tb, void *buf, size_t buf_sz)
 
void tb_strtrim (struct txtbuf *tb)
 
bool tb_strput (struct txtbuf *tb, char *str)
 
int tb_strnum (struct txtbuf *tb)
 
bool tb_strget (struct txtbuf *tb, int index, char *dst, size_t dst_sz)
 
bool tb_strlast (struct txtbuf *tb, int index, char *dst, size_t dst_sz)
 

Detailed Description

Text Buffers

Author
Mitja Horvat pinkf.nosp@m.luid.nosp@m.@gmai.nosp@m.l.co.nosp@m.m