18 lines
340 B
C
18 lines
340 B
C
#include <stdio.h>
|
|
|
|
#include "rcounter_c/rcounter.h"
|
|
#include "rcounter_c/rcounter_types.h"
|
|
|
|
|
|
void main() {
|
|
int o;
|
|
Rcounter__rcounter_mem s;
|
|
Rcounter__rcounter_out out;
|
|
for(;;) { /* Boucle infinie */
|
|
printf("Input: ");
|
|
scanf("%d", &o);
|
|
Rcounter__rcounter_step(o, &out, &s) ; /* Calculs */
|
|
printf("%i\n", out);
|
|
}
|
|
}
|