home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 355_03 / slk3.exe / TEST / TST / STR.TST < prev    next >
Text File  |  1989-02-16  |  475b  |  28 lines

  1. good_strings()
  2. {
  3.     char *s;
  4.  
  5.     /* 1/12/86 Problem with backslash in strings. */
  6. s = "this string contains newline \n, tab \t, single quote \' \
  7. and double quote \" ";
  8.  
  9. /* 1/12/86 Continuation convention did not work. */
  10.     s = "this is a long \
  11.     continued string";
  12.  
  13. }
  14.  
  15. bad_strings()
  16. {
  17.     char *s;
  18.  
  19. /* Multiple line string constant. */
  20. s = "this is a long
  21. continued string"
  22.  
  23.     /* 1/14/86 Run on strings hung up the CPP. */
  24. s = "this is a runon string
  25. ;
  26.  
  27. }
  28.