progs/C1.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 04 Oct 2014 12:46:04 +0100
changeset 197 9c968d0de9a0
parent 112 0711775cb6b0
child 216 38718062709a
permissions -rw-r--r--
moved old scala files into a subdirectory

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