progs/C5.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Wed, 05 Aug 2015 09:52:50 +0200
changeset 377 fed7ce62b6d6
parent 236 40efc28963af
permissions -rw-r--r--
typos

#include<stdio.h>
#include<string.h>

int main(int argc, char **argv)
{  char buf[10];
   snprintf(buf, sizeof buf, argv[1]);
   printf ("Input: %s \n", buf);
}