#include #include char *test; int main (void) { test = malloc (4); test[0] = 'a'; test[1] = 'b'; test[2] = 'c'; test[3] = 'd'; fprintf (stdout, "%.*s\n", 4, test); free (test); return 0; }