File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
// character_string.c
2
2
// Chapter 19
3
- // <book title>
3
+ // Learn C Programming
4
4
//
5
5
// Demonstrate how to
6
6
// 1) print a string using minimum field width, precision and alignment.
7
7
// 2) print sub-strings with pointer arithmetic.
8
8
// 3) print a character using minimum field width and alignment
9
9
//
10
- // compile with: cc character_string.c -o character_string -Wall -Werror -std=c11
10
+ // compile with:
11
+ //
12
+ // cc character_string.c -o character_string -Wall -Werror -std=c11
11
13
//
12
14
13
15
#include <stdio.h>
@@ -34,4 +36,6 @@ int main( void )
34
36
printf ( " %%c [%c] character\n" , aChar );
35
37
printf ( " %%10c [%10c] character right-aligned, field=10\n" , aChar );
36
38
printf ( " %%-10c [%-10c] character left-aligned, field=10\n\n" , aChar );
37
- }
39
+ }
40
+
41
+ // eof
You can’t perform that action at this time.
0 commit comments