xv6/wc.c File Reference

#include "types.h"
#include "stat.h"
#include "user.h"

Go to the source code of this file.

Functions

void wc (int fd, char *name)
int main (int argc, char *argv[])

Variables

char buf [512]


Function Documentation

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

Definition at line 36 of file wc.c.

References close(), exit(), open(), printf(), and wc().

void wc ( int  fd,
char *  name 
)

Definition at line 8 of file wc.c.

References exit(), printf(), read(), strchr(), and w.

Referenced by main().


Variable Documentation

char buf[512]

Definition at line 5 of file wc.c.


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6