Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
PRTESC.C
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
/* PRTESC.C: Prints escape characters \",\n, and \t. */
#include <stdio.h>
#include <string.h>
main()
{
char b[80];
int i,j;
strcpy( b, "and seven years ago\n" );
printf( "\"Four score\n" );
printf( b );
printf( "\tone tab\n\t\ttwo tabs\n\t\t\tthree tabs\n" );
i = sizeof( b );
j = strlen( b );
printf( "Size is %d\nLength is %d.\n", i, j );
}