~nloomans/libft

8457a55e — Liewe Gutter 7 months ago master
made memset significantly faster for very long strings.

Memory will now be set in chunks of the size of an unsigned long long,
until there are less characters left than the chunk size.
add ft_getopt

This functions has been designed to be as close as possible to the
POSIX getopt, while still being norm and without using global variables.

Reference: http://man7.org/linux/man-pages/man3/getopt.3p.html
rm src/ft_putendl_fd.c

Commit cd52fd2c ("remove the ft_put* family of functions") didn't remove
this final file.
remove ft_put* functions in Makefile

Commit cd52fd2c ("remove the ft_put* family of functions") didn't remove
the references to the files in the Makefile. This breaks all Makefile
builds.
fix sourcehut annotatec

The inc directory was not used for annotation, breaking ft_getline.c
with the following error:

Scanning   7/64 ./src/ft_getline.c        ./src/ft_getline.c:15:10: fatal error: ft_getline.h: No such file or directory
   15 | #include "ft_getline.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
  0 symbols     0 references# Please enter the commit message for your changes. Lines starting
remove the ft_put* family of functions

These where poorly designed as they return an void instead of an int.
Most write functions return the amount of characters printed on success
and -1 on failure. These return a void making it impossible to test for
failure.

This will fix the following compile error:

../subprojects/libft/src/ft_putchar_fd.c: In function ‘ft_putchar_fd’:
../subprojects/libft/src/ft_putchar_fd.c:18:8: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
  (void)write(fd, (void *)&c, (size_t)1);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fix normify script
init: ft_strfoversplit
init: ft_strlcpy

This should replace all usages of strcpy(3) and strncpy(3). strncpy(3)
is not as safe as the name makes it sound. It will not add a
NULL-terminator if the string was too long.
init: ft_arraydel

This function allow easy deletion of NULL-terminated arrays.
967334e5 — Noah Loomans 1 year, 6 days ago
add strreplace to build
add build dir to .gitignore
add support for meson besides make
init: ft_strreplace
feat: write script to generate norm compliant version of project
init: ft_intlen
add lists information
19a5a76b — Noah Loomans 1 year, 2 months ago
fix annotations
Next