From afe73cff56de417ce21096476928f53a7515ddec Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Fri, 19 Oct 2007 14:56:45 +0200 Subject: doc added and some reorganised --- commands/cat.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'commands/cat.c') diff --git a/commands/cat.c b/commands/cat.c index 7a8facd0e3..af33eca80c 100644 --- a/commands/cat.c +++ b/commands/cat.c @@ -1,6 +1,4 @@ /* - * cat.c - conacatenate files - * * Copyright (c) 2007 Sascha Hauer , Pengutronix * * See file CREDITS for list of people who contributed to this @@ -20,6 +18,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/** + * @file + * @brief Concatenate files to stdout command + */ + #include #include #include @@ -29,6 +32,11 @@ #include #include +/** + * @param[in] cmdtp FIXME + * @param[in] argc Argument count from command line + * @param[in] argv List of input arguments + */ static int do_cat(cmd_tbl_t *cmdtp, int argc, char *argv[]) { int ret; @@ -85,3 +93,12 @@ U_BOOT_CMD_START(cat) .usage = "concatenate file(s)", U_BOOT_CMD_HELP(cmd_cat_help) U_BOOT_CMD_END + +/** + * @page cat_command cat (concatenate) + * + * Usage is: cat [ ...] + * + * Concatenate files to stdout. Currently only printable characters + * and \\n and \\t are printed, but this should be optional + */ -- cgit v1.2.3