File: test53.ci

package info (click to toggle)
clif 0.93-9
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,228 kB
  • ctags: 3,284
  • sloc: ansic: 31,464; yacc: 5,067; lex: 819; makefile: 383; sh: 48
file content (42 lines) | stat: -rw-r--r-- 796 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
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 = automatic\
duration_time = 256.\
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)
{
  chwrite (handle, sin (x));
  chwrite (handle, sin (x));
  chwrite (handle, sin (x));
  chwrite (handle, sin (x));
  chwrite (handle, sin (x));
  chwrite (handle, sin (x));
}

chclose (handle);
exit;