summary refs log tree commit diff
path: root/bin/man1/c.1
blob: 97384ebe6016b37feadccd18948235a23926538e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.Dd January  9, 2021
.Dt C 1
.Os
.
.Sh NAME
.Nm c
.Nd run C
.
.Sh SYNOPSIS
.Nm
.Op Fl t
.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 .
.It Fl t
With
.Fl e ,
print the type of the expression.
.El
76ae6b5d46b37b7a7ada4e0dd70d08f652&follow=1'>FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe