changeset 105 | 40c51038c9e4 |
child 112 | 0711775cb6b0 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/progs/C1.c Mon Sep 30 23:57:44 2013 +0100 @@ -0,0 +1,19 @@ +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; +} + + + +