progs/C5.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 04 Nov 2014 00:41:34 +0000
changeset 280 b732a63c17b8
parent 236 40efc28963af
permissions -rw-r--r--
updated

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