From 2194438fc14bb3f595209b55fb16d74fbf4637b1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 13:43:41 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 6 +++--- config.mk | 4 ++-- loc.1 | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README b/README index 5ac0881..a645897 100644 --- a/README +++ b/README @@ -11,12 +11,12 @@ DESCRIPTION standard input is read. If more than one file is specified, each successfully - line counted file will have its of lines of code output on - the format + processed file will have its line count output in the + format "%s:%*s%zu\n", , , "", <#lines of code> - The total for all processed files, is printed on the last + The total for all processed files is printed on the last line with the format "%zu\n", <#total lines of code> diff --git a/config.mk b/config.mk index aa81003..bc78e3e 100644 --- a/config.mk +++ b/config.mk @@ -1,8 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CC = cc +CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -O2 +CFLAGS = LDFLAGS = -s diff --git a/loc.1 b/loc.1 index efbfd2e..af23da4 100644 --- a/loc.1 +++ b/loc.1 @@ -1,4 +1,4 @@ -.TH LOC 1 "loc" +.TH LOC 1 LOC .SH NAME loc - count number of lines of code .SH SYNOPSIS @@ -17,14 +17,14 @@ or if a file is not specified, the standard input is read. .PP If more than one .I file -is specified, each successfully line counted file will have -its of lines of code output on the format +is specified, each successfully processed file will have its +line count output in the format .nf \fB"%s:%*s%zu\n"\fP, <\fIfile\fP>, <\fIsome positive integer\fP>, \fB""\fP, <\fI#lines of code\fP> .fi .PP -The total for all processed files, is printed on the last +The total for all processed files is printed on the last line with the format .nf -- cgit v1.2.3-70-g09d2