Here is a list of some of the functions that you might be asked to implement as part of the libft project:
strlen
: calculates the length of a null-terminated stringstrcpy
: copies a string from one location to anotherstrdup
: creates a copy of a string in a new locationstrcmp
: compares two strings lexicographicallymemset
: fills a block of memory with a specific valuememcpy
: copies a block of memory from one location to anothermemmove
: moves a block of memory from one location to anotherputchar
: outputs a single character to the consoleputstr
: outputs a string to the consoleputnbr
: outputs an integer to the console
To complete the libft project, you will need to implement these functions in C. You should also write appropriate unit tests to ensure that your implementations are correct.
It is recommended that you use a modular approach when implementing the libft functions. This means that you should break the functions down into smaller, reusable pieces, and write helper functions as needed. This will make your code easier to read, understand, and debug.
Once you have completed the libft project, you should have a solid foundation in C programming and be well-equipped to tackle more advanced projects.