rename nonzero to argued

This commit is contained in:
2022-10-23 01:53:58 -04:00
parent 5e7fd5b6c9
commit 1f9786233d
6 changed files with 37 additions and 52 deletions
+12
View File
@@ -0,0 +1,12 @@
RM = rm -f
TARGETS = argued
all: $(TARGETS)
%: %.c
$(CC) -o $@ $@.c
clean:
$(RM) $(TARGETS)
.PHONY: all clean
+18
View File
@@ -0,0 +1,18 @@
.TH ARGUED 1
.SH NAME
argued \(en check for arguments
.SH DESCRIPTION
Argued exits successfully if any arguments are provided, and unsuccessfully otherwise.
.SH STANDARDS
Argued is not described in POSIX.1-2017.
Argued's function may be performed on a purely POSIX system with test(1).
.SH COPYRIGHT
Public domain.
+3
View File
@@ -0,0 +1,3 @@
int main(int argc, char *argv[]){
return !(argc > 1);
}