mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 11:22:43 +00:00
b111f2a4d0
Reorganize the handling all-zeroes terminal block in sparse mode PR: 189284 (original PR whose fix introduced this bug) PR: 207092
25 lines
336 B
C
25 lines
336 B
C
/*-
|
|
* This program is in the public domain
|
|
*
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
int i;
|
|
|
|
if (argc > 1 && !strcmp(argv[1], "189284")) {
|
|
fputs("ABCDEFGH", stdout);
|
|
for (i = 0; i < 8; i++)
|
|
putchar(0);
|
|
} else {
|
|
for (i = 0; i < 256; i++)
|
|
putchar(i);
|
|
}
|
|
return (0);
|
|
}
|