command_line_arguments.c: move description to readme

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-10-08 00:00:02 +00:00
parent 50281d1db5
commit 1509c3bca4
2 changed files with 4 additions and 6 deletions

View File

@@ -12854,7 +12854,9 @@ Programs under link:userland/c/[] are examples of https://en.wikipedia.org/wiki/
** link:userland/c/exit0.c[]
** link:userland/c/exit1.c[]
** link:userland/c/exit2.c[]
** link:userland/c/command_line_arguments.c[]
** link:userland/c/command_line_arguments.c[]: print one command line argument per line using `argc` and `argv`.
+
Good sanity check for user mode: <<qemu-user-mode-getting-started>>
* Standard library
** `assert.h`
*** link:userland/c/assert_fail.c[]

View File

@@ -1,8 +1,4 @@
/* Print each command line argument received, one per line.
*
* Good sanity check for user mode:
* https://cirosantilli.com/linux-kernel-module-cheat#qemu-user-mode-getting-started
*/
/* https://cirosantilli.com/linux-kernel-module-cheat#c */
#include <stdio.h>