progs/C5.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 21 Oct 2014 02:35:06 +0100
changeset 252 fa151c0a3cf4
parent 236 40efc28963af
permissions -rw-r--r--
updated slides

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