aboutsummaryrefslogtreecommitdiff
path: root/core/echo.c
blob: fe5642e50b1e8291f45cdd19090e83534175e1e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: BSD-3-Clause */
#include <unistd.h>
#include <stdio.h>
#include <errno.h>

#define REQ_ERRPRINT
#include "../common/common.h"

int main(int argc, char *const argv[]) {
	int i = 1;

	for (i = 1; i != argc; i++) {
		printf("%s ", argv[i]);
	}
	printf("\n");
	return errprint(argv[0], NULL, errno);
}