Introduction
Introduction Statistics Contact Development Disclaimer Help
trange.c: add pledge(2) - numtools - perform numerical operations on vectors an…
git clone git://src.adamsgaard.dk/numtools
Log
Files
Refs
README
LICENSE
---
commit 7e2f799e29da287dac3cc67c1f1ade065a63e7d9
parent 211ed30935ec20145286227258cfc75d6d436734
Author: Anders Damsgaard <[email protected]>
Date: Tue, 3 May 2022 08:28:59 +0200
range.c: add pledge(2)
Diffstat:
M range.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/range.c b/range.c
t@@ -25,6 +25,9 @@ main(int argc, char *argv[])
double minv = 0.0, maxv = 1.0, dx;
char fmtstr[PATH_MAX] = "%g\n";
+ if (pledge("stdio", NULL) == -1)
+ err(2, "pledge");
+
ARGBEGIN {
case 'b':
openstart = 1;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.