Practicing C by implementing some fundamental UNIX functions