simple read from text file C program

This project was awarded to vw472664vw for $5 USD.

Get free quotes for a project like this
Employer working
Project Budget
$10 - $15 USD
Total Bids
Project Description

Write the software tool called tail in the C programming language, so that it can work on any operating system including unix/linux systems. The program should read the number of lines specified on the command line from a text file tail -6 [url removed, login to view] -8 [url removed, login to view] [url removed, login to view] will read the last 6 lines of the file. The default is the last lines of the files, e.g. tail [url removed, login to view] Hints: open the file with open(), go to the end of the file minus the buffer size using lseek(), read data into a buffer, scan the buffer backwards one character a time until you have found the needed number of newlines characters. When reaching the start, read in another buffer. Also include a thorough evalutation of how well the program works. the code needs to be of the simpliest form and contain no advanced coding. only the very simple and basic code required for completeion of this project. all code must be commented and how the program will work

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4> all code should be fully and detailed commented

## Platform


Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online