progs/C1.c
author Christian Urban <urbanc@in.tum.de>
Sat, 23 Sep 2017 13:08:35 +0100 (2017-09-23)
changeset 518 e1fcfba63a31
parent 220 74772c30e0f4
permissions -rw-r--r--
updated
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

void dead () {
  printf("I will never be printed!\n");
  exit(1);
}

void foo(char *bar) {
  char buffer[8];
  strcpy(buffer, bar);
}

int main(int argc, char **argv) {
  foo(argv[1]);
  return 1;
}