delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/03/16:11:18

From: vly AT netcom DOT com (Vinh Ly)
Subject: Beginner question not answered in FAQ/READMEs
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Wed, 3 Nov 93 12:44:30 PST

Section I:
	screen output: 		20 20 2
	printer output:		234567890 testing
				1234567890 testing

Section II:
	screen output: 		21 21 2
	printer output:		[tab]1234567890 testing
				[tab]1234567890 testing

Section III:
	screen output: 		1 20 20 2
	printer output:		234567890 testing
				1234567890 testing

Why is the number '1' missing from the section I (and III)?
Zortech C doesn't have the same problem though.

Thanks,

vl
vly AT netcom DOT com



#include <stdio.h>                            
#include <ctype.h>                           
#include <time.h>                           

void main(void)
{
/* section I */
/*
	printf("%d ", fprintf(stdprn, "1234567890 testing\r\n") );
	printf("%d ", fprintf(stdprn, "1234567890 testing\r\n") );
	printf("%d \n", fprintf(stdprn, "\f\x1B") );
*/

/* section II */
/*
	printf("%d ", fprintf(stdprn, "\t1234567890 testing\r\n") );
	printf("%d ", fprintf(stdprn, "\t1234567890 testing\r\n") );
	printf("%d \n", fprintf(stdprn, "\f\x1B") );
*/
/* section III */
/*
	printf("%d ", fprintf(stdprn, "\x1B") );
	printf("%d ", fprintf(stdprn, "1234567890 testing\r\n") );
	printf("%d ", fprintf(stdprn, "1234567890 testing\r\n") );
	printf("%d \n", fprintf(stdprn, "\f\x1B") );
*/
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019