aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

as_util.h (311B)


      1 #pragma once
      2 
      3 #include <stddef.h> /* size_t */
      4 
      5 #include "table.h"
      6 
      7 /* string table */
      8 struct Strtab {
      9   struct Table offsets;
     10   size_t       size;
     11 };
     12 
     13 void   strtab_init(struct Strtab *strtab);
     14 size_t strtab_add(struct Strtab *strtab, const struct Name *name);
     15 void  *strtab_dump(const struct Strtab *strtab);