progs/C1.c
changeset 105 40c51038c9e4
child 112 0711775cb6b0
equal deleted inserted replaced
104:729b86eae005 105:40c51038c9e4
       
     1 void foo (char *bar)
       
     2 {
       
     3   float my_float = 10.5;    // in hex: \x41\x28\x00\x00
       
     4   char  buffer[28];        
       
     5 
       
     6   printf("my float value = %f\n", my_float);
       
     7   strcpy(buffer, bar);  
       
     8   printf("my float value = %f\n", my_float);
       
     9 }
       
    10  
       
    11 int main (int argc, char **argv)
       
    12 {
       
    13   foo("my string is too long !!!!! ");
       
    14   return 0;
       
    15 }
       
    16 
       
    17 
       
    18 
       
    19