Track slstatus source files

This commit is contained in:
Hektor Misplon
2020-11-15 19:15:09 +01:00
parent fa3d7bfaeb
commit 6489cb8948
33 changed files with 2749 additions and 0 deletions

16
.suckless/slstatus/util.h Normal file
View File

@@ -0,0 +1,16 @@
/* See LICENSE file for copyright and license details. */
#include <stdint.h>
extern char buf[1024];
#define LEN(x) (sizeof (x) / sizeof *(x))
extern char *argv0;
void warn(const char *, ...);
void die(const char *, ...);
int esnprintf(char *str, size_t size, const char *fmt, ...);
const char *bprintf(const char *fmt, ...);
const char *fmt_human(uintmax_t num, int base);
int pscanf(const char *path, const char *fmt, ...);