cbt/cbt.c

15 lines
291 B
C
Raw Normal View History

2023-11-15 10:24:27 +03:00
// x-run: ~/scripts/runc.sh % -Wall -Wextra
2023-09-20 10:45:18 +03:00
#define CBT_IMPLEMENTATION
2023-09-19 11:00:57 +03:00
#include "cbt.h"
int main(int argc, char **argv) {
2023-09-20 10:45:18 +03:00
CBT_INIT(argc, argv);
2023-11-18 14:02:12 +03:00
struct cbt_proc proc =
cbt_proc_new(CBT_PROC_NORMAL, "sh", "-c", "echo 'owo'");
2023-11-15 10:24:27 +03:00
cbt_proc_wait(proc);
cbt_cleanup();
2023-09-20 10:45:18 +03:00
return 0;
2023-09-19 11:00:57 +03:00
}