mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
* Clang 16 (and likely GCC 14) will enforce strict C99 semantics and break old K&R C declarations and require correct C89 function prototypes. Bug: https://bugs.gentoo.org/870952 Clang: https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213/9
17 lines
193 B
C
17 lines
193 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
register int c;
|
|
|
|
while ( (c=getchar()) != EOF) {
|
|
if (c == ' ')
|
|
putchar('\n');
|
|
else
|
|
putchar(c);
|
|
}
|
|
exit(0);
|
|
}
|