progs/C1.c
author Christian Urban <urbanc@in.tum.de>
Tue, 26 Sep 2017 13:22:24 +0100
changeset 539 48e0c8b03ae5
parent 220 74772c30e0f4
permissions -rw-r--r--
spell

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