Guest User

Untitled

a guest
Jan 4th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1.         if(etat == 5){
  2.             max = 1000;
  3.             printf("max:%i \n", max);
  4.             int ** histoTempo = malloc(sizeof(int*)*2);
  5.             histoTempo[0] = malloc(sizeof(int)* max);
  6.             histoTempo[1] = malloc(sizeof(int)* max);
  7.             histoTempo[0][0] = (int)strtol(val, NULL, 0);
  8.             histoTempo[1][1] = 32;
  9.             histoTempo[1][222] = 35;
  10.             cpt = 0;
  11.             etat = 51;
  12.             canswitch = 0;
  13.         }
  14.  
  15.        
  16.  
  17.         if(etat == 51 && canswitch){
  18.             printf("etat: %i, lu: %s, cpt: %i\n", etat, val,cpt);
  19.             fflush(stdin);
  20.             test = (int) atoi(val);
  21.             histoTempo[1][222] = test;
  22.             etat = 52;
  23.             canswitch = 0;
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment