Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft Function List (WIP)

The below are all functions inside the libft.

Character Classification

  1. ft_isascii: Checks if a character is a 7-bit unsigned char value.
  2. ft_isdigit: Checks if a character is a digit.
  3. ft_isalnum: Checks if a character is an alphanumeric character.
  4. ft_isprint: Checks if a character is a printable character, including space.
  5. ft_isspace: Checks if a character is a space character.
  6. ft_isalpha: Checks if a character is an alphabetic character.
  7. ft_islowalpha: Checks if a character is a lowercase alphabetic character.
  8. ft_isupalpha: Checks if a character is an uppercase alphabetic character.
  9. ft_toupper: Converts a lowercase letter to uppercase.
  10. ft_tolower: Converts an uppercase letter to lowercase.

String Functions

  1. ft_strlen: Calculates the length of a string.
  2. ft_strdup: Duplicates a string.
  3. ft_strlcpy: Copies a string with size limitation.
  4. ft_strncpy: Copies a string with length limitation.
  5. ft_strcat: Concatenates two strings.
  6. ft_strncat: Concatenates two strings with length limitation.
  7. ft_strlcat: Appends a string with size limitation.
  8. ft_strchr: Locates the first occurrence of a character in a string.
  9. ft_strrchr: Locates the last occurrence of a character in a string.
  10. ft_strstr: Finds the first occurrence of a substring in a string.
  11. ft_strnstr: Finds a substring in a string with length limitation.
  12. ft_strcmp: Compares two strings.
  13. ft_strncmp: Compares two strings with length limitation.
  14. ft_atoi: Converts a string to an integer.

Memory Functions

  1. ft_memset: Fills memory with a constant byte.
  2. ft_bzero: Erases the data in a given number of bytes.
  3. ft_memcpy: Copies memory area.
  4. ft_memmove: Copies memory, handling overlap.
  5. ft_memchr: Finds the first occurrence of a character in memory.
  6. ft_memcmp: Compares two memory regions.

Other Functions

  1. ft_strclr: Clears a string.
  2. ft_striter: Iterates through a string and applies a function to each character.
  3. ft_striteri: Iterates through a string and applies a function to each character (with index).
  4. ft_putchar: Outputs a character to the standard output.
  5. ft_putstr: Outputs a string to the standard output.
  6. ft_putendl: Outputs a string followed by a newline to the standard output.
  7. ft_putnbr: Outputs an integer to the standard output.
  8. ft_itoa: Converts an integer to a string.
  9. ft_count_words: Counts words in a string.
  10. ft_split: Splits a string into words.
  11. ft_putchar_fd: Outputs a character to a given file descriptor.
  12. ft_putendl_fd: Outputs a string followed by a newline to a given file descriptor.
  13. ft_putnbr_fd: Outputs an integer to a given file descriptor.
  14. ft_putstr_fd: Outputs a string to a given file descriptor.
  15. ft_memalloc: Allocates memory.
  16. ft_memdel: Frees memory.
  17. ft_strnew: Creates a new string of a specified size.
  18. ft_strmap: Applies a function to each character in a string.
  19. ft_strmapi: Applies a function to each character in a string (with index).
  20. ft_strjoin: Concatenates two strings.
  21. ft_strtrim: Trims leading and trailing characters from a string.
  22. ft_substr: Extracts a substring from a string.
  23. ft_calloc: Allocates memory for an array and initializes it.

About

Basic C library with foundational functions such as printf and get_next_line.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages