From 1509c3bca49460f7805456174edc2ed05a52d127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 8 Oct 2019 00:00:02 +0000 Subject: [PATCH] command_line_arguments.c: move description to readme --- README.adoc | 4 +++- userland/c/command_line_arguments.c | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.adoc b/README.adoc index 3f5c3e8..86cdb91 100644 --- a/README.adoc +++ b/README.adoc @@ -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: <> * Standard library ** `assert.h` *** link:userland/c/assert_fail.c[] diff --git a/userland/c/command_line_arguments.c b/userland/c/command_line_arguments.c index 06a4bb5..e046ced 100644 --- a/userland/c/command_line_arguments.c +++ b/userland/c/command_line_arguments.c @@ -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