stringf.c 254 B

1234567891011
  1. /* stringf.c -- string formatting */
  2. #include <stdio.h>
  3. #define BLURB "Authentic imitation!"
  4. int main(void)
  5. {
  6. printf("[%2s]\n", BLURB);
  7. printf("[%24s]\n", BLURB);
  8. printf("[%24.5s]\n", BLURB);
  9. printf("[%-24.5s]\n", BLURB);
  10. return 0;
  11. }