CS318 - Pintos
Pintos source browser for JHU CS318 course
|
Go to the documentation of this file.
9 main (
int argc,
char *argv[])
14 for (i = 1; i < argc; i++)
16 int fd =
open (argv[i]);
19 printf (
"%s: open failed\n", argv[i]);
#define EXIT_FAILURE
Unsuccessful execution.
void hex_dump(uintptr_t ofs, const void *buf_, size_t size, bool ascii)
Dumps the SIZE bytes in BUF to the console as hex bytes arranged 16 per line.
int printf(const char *format,...)
Writes formatted output to the console.
int open(const char *file)
#define EXIT_SUCCESS
Typical return values from main() and arguments to exit().
int main(int argc, char *argv[])
hex-dump.c
int read(int fd, void *buffer, unsigned size)