source:
CIVL/mods/dev.civl.com/examples/library/stdio/fprintfExit.cvl@
bc0fbae
| Last change on this file since bc0fbae was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 241 bytes | |
| Rev | Line | |
|---|---|---|
| [4bba163] | 1 | #include<stdio.h> |
| 2 | #include<civlc.cvh> | |
| 3 | ||
| 4 | $input int K; | |
| 5 | ||
| 6 | int main(){ | |
| 7 | int a = 1, b = 2, c = 3; | |
| 8 | ||
| 9 | fprintf(stdout, "a is %d\n", a); | |
| 10 | fprintf(stdout, "b is %d\n", b); | |
| 11 | if(K == 0) | |
| 12 | $exit(); | |
| 13 | fprintf(stderr, "c is %d\n", c); | |
| 14 | return 0; | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
