/* Program: prstring.c Testing the printf function. */ #include #include "genlib.h" #include "simpio.h" main() { string s ; s = "Hello World" ; printf("1234567890123456789012345\n") ; printf("%s\n", s) ; printf("%20s\n", s) ; printf("%10s\n", s) ; printf("%10.10s\n", s) ; printf("%%%s%%\n", s) ; } -------------------------------------------- 1234567890123456789012345 Hello World Hello World Hello World Hello Worl %Hello World%