/******************************************************************************
* This file is Copyright 1993 by Philip G. Richards.  All Rights Reserved.
* See the file README that came with this distribution for permissions on
* code usage, copying, and distribution.  It comes with absolutely no warranty.
* email: <pgr@prg.ox.ac.uk>
******************************************************************************/

/* ---INFOBEGIN--- *  DO NOT DELETE THIS COMMENT BLOCK!!!
COMMAND echo none "echo a string with newline"
COMMAND echon none "echo a string without newline"
 *  ---INFOEND---  */

#include "client.h"
#include "table.h"

int
lecho_main(int argc, char *const*argv, char **envp)
{
    int i;

    for (i = 1; i < argc; i++)
	ffprintf(STDOUT, "%s%s", (i > 1)?" ":"", argv[i]);

    if (strcmp(argv[0], "echon") != 0)
	ffprintf(STDOUT, "\n");

    return 0;
}


syntax highlighted by Code2HTML, v. 0.9.1