Skip to content
Iva edited this page Sep 21, 2024 · 3 revisions

Modified Libft Functions

Some existing functions in libft have been modified to address specific requirements of this project.
These updates provide additional functionality or control over the output process.
Below are the modified functions and the reasons for their changes.

ft_putchar_v2

Similar principles as their original libc, writes the character c, but in addition it returns the number of characters written.

ft_putstr_v2

Similar principles as their original libc, outputs the string s, but in addition it returns the number of characters printed.

ft_putnbr_v2

Similar principles as their original libc, prints the integer n, but in addition it returns the number of characters printed.

Since the original printf function returns the number of characters printed, updating the utility functions in libft to include this feature is a simple and efficient way to enhance existing functionality.
This modification allows these utility functions to provide additional control, making them more versatile while maintaining the simplicity of their core behavior.

Previous ⬅️ Top ⬆️ Next ➡️

Clone this wiki locally