echo.c 411 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: BSD-3-Clause */
  2. /*
  3. * Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com>
  4. */
  5. #include <unistd.h>
  6. #include <stdio.h>
  7. #include <errno.h>
  8. #define REQ_ERRPRINT
  9. #include "../common/common.h"
  10. int main(int argc, char *const argv[]) {
  11. int i = 1;
  12. for (i = 1; i != argc; i++) {
  13. printf("%s ", argv[i]);
  14. }
  15. printf("\n");
  16. return errprint(argv[0], NULL, errno);
  17. }