diff options
author | June McEnroe <june@causal.agency> | 2020-05-31 13:12:23 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-31 13:12:23 -0400 |
commit | bd462306b446e008b6278ef4fce67162f1b7432e (patch) | |
tree | a640ee58e7631a55c7267115a23f2651a955060f /bin/man1 | |
parent | Update mdoc source URLs (diff) | |
download | src-bd462306b446e008b6278ef4fce67162f1b7432e.tar.gz src-bd462306b446e008b6278ef4fce67162f1b7432e.zip |
Add c script
Diffstat (limited to '')
-rw-r--r-- | bin/man1/c.1 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/bin/man1/c.1 b/bin/man1/c.1 new file mode 100644 index 00000000..3ae10945 --- /dev/null +++ b/bin/man1/c.1 @@ -0,0 +1,40 @@ +.Dd May 31, 2020 +.Dt C 1 +.Os +. +.Sh NAME +.Nm c +.Nd run C +. +.Sh SYNOPSIS +.Nm +.Op Fl e Ar expr +.Op Fl i Ar include +.Op Ar stmts ... +. +.Sh DESCRIPTION +The +.Nm +utility compiles and runs +C statements wrapped in +.Fn main +with common includes. +If no +.Ar expr +or +.Ar stmts +are provided, +statements are read from standard input. +. +.Pp +The arguments are as follows: +.Bl -tag -width Ds +.It Fl e Ar expr +Print the result of the C expression +.Ar expr +after executing +.Ar stmts . +.It Fl i Ar include +Add the include file +.Ar include . +.El |