char *buf = (char *) malloc(sizeof(char)); strncpy( buf, "meowmeowmeowmeowmeow", 21 );