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
25 lines
347 B
C
25 lines
347 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
int nl = 1;
|
|
int i;
|
|
|
|
if ( (argc > 1) && (strcmp(argv[1], "-n") == 0) ) {
|
|
++argv;
|
|
--argc;
|
|
nl = 0;
|
|
}
|
|
|
|
for ( i=1; i < argc; i++ ) {
|
|
if ( i > 1 ) putchar(' ');
|
|
fputs(argv[i], stdout);
|
|
}
|
|
if (nl) putchar('\n');
|
|
exit(0);
|
|
}
|