Skip to content

Bard-Gaming/42readline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42readline

Project Description

This library is used for the 42sh project.

The library adds the readline function, which behaves much like the c standard library's getline function, with a few notable differences.

For instance, the readline handles cursor control (i.e. controlling the terminal cursor with arrow keys) if the given file stream is a tty stream.

Compile Instructions

To compile the standard version of readline, simply run make:

make

To compile a version with debug symbols enabled, use the debug rule:

make debug

This project uses the address sanitizer to ensure no memory leaks are produced. To compile the library with the address sanitizer enabled, please use the sanitize rule:

make sanitize

When you're done, you can use the clean rule to delete any temporary files, or the fclean rule to delete everything but the source code.

About

This project is my own spin at a readline library written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors