Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
cpu
stm32w108
e_stdio
src
test_mes.c
1
2
#define FLOATING
3
#define PRINT
4
#define SCANF
5
6
7
int
main
() {
8
9
char
ent_char ;
10
float
flottant ;
11
12
#ifndef FLOATING
13
#ifdef PRINT
14
ent_char=
'a'
;
15
#endif
16
17
#ifdef SCANF
18
scanf(
"%c"
, &ent_char);
19
#endif
20
21
#ifdef PRINT
22
printf(
"%c\n"
, ent_char);
23
#endif
24
25
26
27
#else
28
#ifdef PRINT
29
flottant = 1.456789;
30
#endif
31
32
#ifdef SCANF
33
scanf(
"%f"
, &flottant);
34
#endif
35
36
#ifdef PRINT
37
printf(
"%f\n"
, flottant);
38
#endif
39
40
#endif
41
return
0;
42
43
}
44
Generated on Fri Aug 30 2013 12:34:09 for Contiki 2.5 by
1.8.3.1