blob: 595e6defe0a19285c054711d8bef793b874b5be0 [file] [log] [blame]
Erik Andersen13456d12000-03-16 08:09:57 +00001/*
Paul Fox0b621582005-08-09 19:38:05 +00002 * echo applet implementation for busybox
Erik Andersen13456d12000-03-16 08:09:57 +00003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
Manuel Novoa III cad53642003-03-19 09:13:01 +000018 */
19
Erik Andersen13456d12000-03-16 08:09:57 +000020#include <stdio.h>
Eric Andersened3ef502001-01-27 08:24:39 +000021#include <string.h>
22#include <stdlib.h>
Eric Andersencbe31da2001-02-20 06:14:08 +000023#include "busybox.h"
Erik Andersen13456d12000-03-16 08:09:57 +000024
Manuel Novoa III cad53642003-03-19 09:13:01 +000025extern int echo_main(int argc, char** argv)
Erik Andersen13456d12000-03-16 08:09:57 +000026{
Paul Fox0b621582005-08-09 19:38:05 +000027 (void)bb_echo(argc, argv);
Manuel Novoa III cad53642003-03-19 09:13:01 +000028 bb_fflush_stdout_and_exit(EXIT_SUCCESS);
Erik Andersen13456d12000-03-16 08:09:57 +000029}