Skip to content

charles-obiora/-get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This project has been created as part of the 42 curriculum by Charles Obiora. *

Description

This codebase is for the get_next_line project @ 42 London. The get_next_line is a utility function that returns a new line and all the characters it encounters before the new line whenever it encounters a new line while reading a file. It will only and always return a character or a string whenever it encounters a newline expect it encounters an error.

To successfully complete the get_next_line project, you will have to learn about:

  • Static pointers

  • Heap and stack memory

  • Stackoverflow

  • Macros

  • How to open and read a file

Instructions

To compile this project you only need to have a C compiler installed on your system and you can compile the project using either of the commands below. The commands should be executed at the root directory of the project.

  • cc -Wall -Wextra -Werror -D BUFFER_SIZE=42 .c

  • cc -Wall -Wextra -Werror .c

Resources

About

The get_next_line is a utility function written using the C language. It returns a new line and all the characters it encounters before the new line whenever it encounters a new line while reading a file. It will only and always return a character or a string whenever it encounters a newline expect it encounters an error.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages