Files
David Seifert 7afa5c6242 Make C99 clean
* 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
2022-10-27 11:08:49 -07:00

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);
}