File: test54.ci

package info (click to toggle)
clif 0.92-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,580 kB
  • ctags: 2,814
  • sloc: ansic: 31,040; yacc: 4,961; lex: 659; makefile: 390; sh: 60
file content (43 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (7)
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
double x, y;

int handle;
handle = chopen ("fields = 6\
lower (0) = -0.5\
upper (0) = 0.5\
style (0) = 10\
lower (1) = -1.5\
upper (1) = 1.5\
style (1) = 20\
lower (2) = -3.\
upper (2) = 3.\
style (2) = 15\
lower (3) = -3.5\
upper (3) = 3.5\
style (3) = 5\
lower (4) = -4.\
upper (4) = 4.\
style (4) = 17\
lower (5) = -4.5\
upper (5) = 4.5\
style (5) = 7\
start_time = 0.\
duration_time = automatic\
w_resolution = 600 400\
print_format = point\
type = alpha\
OnLeaveW = suspend");

printf ("if the output in the graphic window is finished press a key\n");

for (x = 0; x < 6.5; x = x + 0.01)
{
  y = sin (x);
  chwrite (handle, y);
  chwrite (handle, y);
  chwrite (handle, y);
  chwrite (handle, y);
  chwrite (handle, y);
  chwrite (handle, y);
}
chclose (handle);
exit;