mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 18:39:16 +00:00
docs: add note in echo.c PrintHelp()
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -17,13 +17,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -24,6 +24,14 @@
|
||||
|
||||
void PrintHelp()
|
||||
{
|
||||
/**
|
||||
* POSIX specification for echo specifies that
|
||||
* "Implementations shall not support any options."
|
||||
* but i will do this anyway.
|
||||
*
|
||||
* https://pubs.opengroup.org/onlinepubs/9799919799/utilities/echo.html
|
||||
*/
|
||||
|
||||
printf("Usage: echo [OPTION]... [STRING]...\n");
|
||||
printf("Echo the STRING(s) to standard output.\n\n");
|
||||
printf(" -n do not output the trailing newline\n");
|
||||
|
Reference in New Issue
Block a user