dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 119cc41307484018076e261d586310923ccd6558
parent aa180303b4d3d2cbf5a9e3a4d8936d54f5a940a7
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Sat, 14 Jun 2008 17:51:41 +0200

Add error(const char *errstr, ...) function

Diffstat:
dvtm.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -151,6 +151,15 @@ eprint(const char *errstr, ...) { } void +error(const char *errstr, ...) { + va_list ap; + va_start(ap, errstr); + vfprintf(stderr, errstr, ap); + va_end(ap); + exit(EXIT_FAILURE); +} + +void attach(Client *c) { uint8_t order; if (clients)