Skip to content

Latest commit

 

History

History
41 lines (19 loc) · 897 Bytes

README.md

File metadata and controls

41 lines (19 loc) · 897 Bytes

CPE_getnextline_2018

A very first parsing tool (Reproduce a part of the getline function) (End of project 02/06/19).

Experience in C : 3 months.

The project

Project subject.

The goal of this project is to write a function that returns a read line from a file descriptor.

If there are no more lines to return, or if there is an error during the reading, the function will come back NULL.

Example

GNL Example 1

GNL Example 2

Results:

100.00% functional :

Nao Marvin

100.00% 01 - Static / Buffering (3 tests)

100.00% 02 - Basic READ_SIZE and buffer handling (3 tests)

100.00% 03 - Test with READ_SIZE (5 tests)

100.00% 04 - Special cases (4 tests)

100.00% 05 - Error handling (2 tests)

100.00% 06 - Buffer manipulation (one read) (5 tests)