author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Mon, 06 Oct 2014 20:52:53 +0100 | |
changeset 211 | e6e160c7ea33 |
parent 202 | 6740798264c1 |
child 231 | 60e046ab6c94 |
permissions | -rw-r--r-- |
#include <string.h> #include <stdio.h> void foo (char *bar) { long my_long = 101010101; // in hex: \xB5\x4A\x05\x06 char buffer[28]; printf("my_long value = %lu\n", my_long); strcpy(buffer, bar); printf("my_long value = %lu\n", my_long); } int main (int argc, char **argv) { foo("my string is too long !!!!!"); return 0; }