home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / qc / qc25 / prtesc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-15  |  390 b   |  18 lines

  1. /* PRTESC.C: Prints escape characters \",\n, and \t. */
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. main()
  6. {
  7.    char b[80];
  8.    int i,j;
  9.  
  10.    strcpy( b, "and seven years ago\n" );
  11.    printf( "\"Four score\n" );
  12.    printf( b );
  13.    printf( "\tone tab\n\t\ttwo tabs\n\t\t\tthree tabs\n" );
  14.    i = sizeof( b );
  15.    j = strlen( b );
  16.    printf( "Size is %d\nLength is %d.\n", i, j );
  17. }
  18.