Basic Solution File System - BSFS
Loading...
Searching...
No Matches
echo.c File Reference

Implements the echo command for the BSFS filesystem. More...

Functions

int echo (FILE *disk, superblock_t *sb, char **args)
 Write text or append text to a file, or echo to screen.

Detailed Description

Implements the echo command for the BSFS filesystem.

Writes text to files or displays text on screen.

Function Documentation

◆ echo()

int echo ( FILE * disk,
superblock_t * sb,
char ** args )

Write text or append text to a file, or echo to screen.

Usage: echo "text" [> file | >> file]

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsText tokens and optional redirection operator + filename.
Returns
1 to continue the REPL.