mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
Relocate C code from klish-plugin-infix to stand-alone binaries we can use also from Bash. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
18 lines
426 B
C
18 lines
426 B
C
/* SPDX-License-Identifier: ISC */
|
|
#ifndef BIN_UTIL_H_
|
|
#define BIN_UTIL_H_
|
|
#include <stdio.h>
|
|
#include <libite/lite.h>
|
|
|
|
#define ERRMSG "Error: "
|
|
#define INFMSG "Note: "
|
|
|
|
int yorn (const char *fmt, ...);
|
|
|
|
int files (const char *path, const char *stripext);
|
|
|
|
int has_ext (const char *fn, const char *ext);
|
|
char *cfg_adjust (const char *fn, const char *tmpl, char *buf, size_t len);
|
|
|
|
#endif /* BIN_UTIL_H_ */
|