progs/example2.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 04 Oct 2014 15:16:32 +0100
changeset 201 f7a9837a63b8
parent 200 17852f5397fd
permissions -rw-r--r--
moved arguments back

void function(char *str) {
   char buffer[16];

   strcpy(buffer,str);
}

void main() {
  char large_string[256];
  int i;

  for( i = 0; i < 255; i++)
    large_string[i] = 'A';

  function(large_string);
}