stacinhtml

Static C in HTML - simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

commit 450e324fdc16f4686b48ee54bca7a91f096ed8c1
parent 4bae6fb08b09fdf92a3acca6b6a5bae11d7c6a08
Author: kocotian <kocotian@kocotian.pl>
Date:   Tue, 13 Apr 2021 19:52:26 +0200

nprint()

Diffstat:
Mconfig.mk | 2+-
Mlibstac/libstac.c | 6++++++
Mlibstac/libstac.h | 1+
3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/config.mk b/config.mk @@ -1,7 +1,7 @@ # basics MAJORVERSION = 0 SUBVERSION = 2 -PATCHLEVEL = 2 +PATCHLEVEL = 3 BUILDNAME = vanilla VERSION = ${MAJORVERSION}.${SUBVERSION}.${PATCHLEVEL}-${BUILDNAME} diff --git a/libstac/libstac.c b/libstac/libstac.c @@ -6,6 +6,12 @@ print(char *what) return write(fd, what, strlen(what)); } +ssize_t +nprint(char *what, size_t n) +{ + return write(fd, what, n); +} + int lsprintf(char *fmt, ...) { diff --git a/libstac/libstac.h b/libstac/libstac.h @@ -21,6 +21,7 @@ #define PERCENT write(fd, "\x25", 1); ssize_t print(char *what); +ssize_t nprint(char *what, size_t n); int lsprintf(char *fmt, ...); #endif