PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tutorial/cecil/array_of_integers/c_prog.c

http://github.com/tybor/Liberty
C | 16 lines | 12 code | 4 blank | 0 comment | 1 complexity | dae08cf344017924d1fc5720f4c79894 MD5 | raw file
 1#include <stdio.h>
 2#include "eiffel.h"
 3
 4c_prog (EIF_OBJ values) {
 5  int i;
 6  int val;
 7  
 8  for (i=array_of_int_lower(values);
 9       i <= array_of_int_upper(values);
10       i++) {
11    val = array_of_int_item(values,i);
12    printf("%d\n",val);
13  }
14}
15
16