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

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

Functions

int cat (FILE *disk, superblock_t *sb, char **args)
 Display file contents.

Detailed Description

Implements the cat command for the BSFS filesystem.

Displays the contents of files.

Function Documentation

◆ cat()

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

Display file contents.

Usage: cat <path>

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsFile path in args[1].
Returns
1 to continue the REPL.