Skip to content

Implementation of a function written in C that reads a lines from a file descriptor

Notifications You must be signed in to change notification settings

trobert42/get_next_line

Repository files navigation

GNL - getline() but in C

The goal of this project is to develop a function in C that reads lines ending with a newline character ('\n') from a file descriptor without prior knowledge of their size. Through this project, we aim to explore the concept of static variables in C programming and gain insight into memory allocations, buffer manipulation, and the lifecycle of buffers.

Project Name get_next_line
Description My implementation of a function written in C that reads a lines from a file descriptor function
Technologies C
External libraries malloc(), free(), read()

Usage

  gcl https://github.com/trobert42/get_next_line.git
  cd get_next_line

You can use it by compiling the main.c. Here's how :

gcc -Wall -Wextra -Werror main.c get_next_line.c get_next_line_utils.c 
./a.out text1.text

About

Implementation of a function written in C that reads a lines from a file descriptor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages