PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
cp.c File Reference
#include <stdio.h>
#include <syscall.h>
Include dependency graph for cp.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 cat.c More...
 

Function Documentation

◆ main()

int main ( int argc   ,
char *  argv[] 
)

cat.c

Copies one file to another.

Definition at line 9 of file cp.c.

References buffer, create(), EXIT_FAILURE, EXIT_SUCCESS, filesize(), open(), printf(), read(), and write().

Here is the call graph for this function: