CS318 - Pintos
Pintos source browser for JHU CS318 course
Functions
lineup.c File Reference
#include <ctype.h>
#include <stdio.h>
#include <syscall.h>
Include dependency graph for lineup.c:

Go to the source code of this file.

Functions

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

Function Documentation

◆ main()

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

lineup.c

Converts a file to uppercase in-place.

Incidentally, another way to do this while avoiding the seeks would be to open the input file, then remove() it and reopen it under another handle. Because of Unix deletion semantics this works fine.

Definition at line 15 of file lineup.c.

References buf, close(), exit(), EXIT_SUCCESS, open(), printf(), read(), seek(), tell(), toupper(), and write().

Here is the call graph for this function: