how to print newline characters in c code example
Example 1: puts without newline c
fputs(input, stdout);
Example 2: printf n characters c
// Only 5 characters printed
const char * mystr = "This string is definitely longer than what we want to print.";
printf("Here are first 5 chars only: %.5s\n", mystr);