progs/C1.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 08 Oct 2013 05:53:21 +0100
changeset 112 0711775cb6b0
parent 105 40c51038c9e4
child 216 38718062709a
permissions -rw-r--r--
added

void foo (char *bar)
{
  float my_float = 10.5;  // in hex: \x41\x28\x00\x00
  char  buffer[28];        

  printf("my float value = %f\n", my_float);
  strcpy(buffer, bar);  
  printf("my float value = %f\n", my_float);
}
 
int main (int argc, char **argv)
{
  foo("my string is too long !!!!! ");
  return 0;
}