progs/C1.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 07 Oct 2013 17:25:04 +0100
changeset 109 b71ce151aba8
parent 105 40c51038c9e4
child 112 0711775cb6b0
permissions -rw-r--r--
added new version

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;
}