cembed

convert files to C char arrays
git clone git://git.rr3.xyz/cembed
Log | Files | Refs | README | LICENSE

commit b1fcd99ec975069313fc7bbee2fe56c0298e2586
parent 478f0eb10f3281a947607038269083141f07090f
Author: Robert Russell <robert@rr3.xyz>
Date:   Mon, 11 Nov 2024 20:15:32 -0800

Update man page and README

Diffstat:
MREADME | 3++-
Mcembed.1 | 4+++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README b/README @@ -8,6 +8,7 @@ SYNOPSIS DESCRIPTION cembed encodes the contents of path as a C char array declaration named - name and prints the result to stdout. + name and prints the result to stdout. The char array is NULL- + terminated, so the length of the data in bytes is sizeof name - 1. cembed 2024-11-11 CEMBED(1) diff --git a/cembed.1 b/cembed.1 @@ -5,4 +5,6 @@ cembed \- convert files to C char arrays \fBcembed\fR [\-h|\-\-help] \fIname\fR \fIpath\fR .SH DESCRIPTION \fBcembed\fR encodes the contents of \fIpath\fR as a C char array declaration -named \fIname\fR and prints the result to stdout. +named \fIname\fR and prints the result to stdout. The char array is +NULL-terminated, so the length of the data in bytes is +\fBsizeof\fR\ \fIname\fR\ \-\ 1.