Go to the first, previous, next, last section, table of contents.

Example2.c - source code for extended example

1  char g_foo = 'c';
2  register int g_bar asm ("%g5");
3  static int s_g_repeat = 2; 
4  int (*g_pf)();
5 
6  struct s_tag {
7    int   s_int;
8    float s_float;
9    char  s_char_vec[8];
10   struct s_tag* s_next;
11 } g_an_s;
12 
13 typedef struct s_tag s_typedef;
14 
15 char char_vec[3] = {'a','b','c'};
16 
17 main (argc, argv)
18      int argc;
19      char* argv[];
20 {
21      static float s_flap;
22      int times;
23      for (times=0; times < s_g_repeat; times++){
24        int inner;
25        printf ("Hello world\n");
26      }
27 };
28 
29 enum e_places {first,second=3,last};
30 
31 static s_proc (s_arg, s_ptr_arg, char_vec)
32   s_typedef s_arg;
33   s_typedef* s_ptr_arg;
34   char* char_vec;
35 {
36   union u_tag {
37     int  u_int;
38     float u_float;
39     char* u_char;
40   } an_u;
41 }
42 
43 

Go to the first, previous, next, last section, table of contents.