progs/C5.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 05 Sep 2016 12:27:04 +0100
changeset 461 57108918cf8c
parent 236 40efc28963af
permissions -rw-r--r--
links

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