aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/krfun.c
blob: e34098b589f4b94ee434812915e38f6c801049c7 (plain)
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
/* Old-style, K&R function definitions */

#include <stdio.h>

void f(a, b, c)
     int c, a;
     char * b;
{
  printf("f(%d, \"%s\", %d)\n", a, b, c);
}

void g(a, b, c, d, e, x)
     const unsigned char a;
     char b[64];
     float c;
     double d;
     volatile int e;
     long long x;
{
  printf("g(%d, \"%s\", %a, %a, %d, %lld)\n", a, b, c, d, e, x);
}

void h(a, b, c)
     char * b;
{
  printf("h(%d, \"%s\", %d)\n", a, b, c);
}


int main()
{
  f(1, "Hello", 2);
  g(257, "World", 3.141592654, 3.141592654, -34, 12345678901234567LL);
  h(6, "warning!", 7);
  return 0;
}