🔧 System Requirements:
To run the command, open your terminal and follow these steps:
-
To create
libft.a
:(cd /path/to/project/directory && make)
-
To compile with
libft.a
:(cd /path/to/project/directory && make) gcc -o a.out *.o -I </path/to/project/directory>/libft/includes -L /path/to/project/directory -lft
# include "ft_printf.h"
-
ft_printf
-int ft_printf(const char *format, ...);
-
ft_dprintf
-int ft_dprintf(int fd, const char *format, ...);
Types conversions :
%c
print a single character.%s
print a string of characters.%p
The void * pointer argument is printed in hexadecimal%d
print a decimal (base 10) number.%i
print an integer in base 10.%u
print an unsigned decimal (base 10) number.%x
print a number in lowercase hexadecimal (base 16).%X
print a number in uppercase hexadecimal (base 16).%%
print a percent sign.
Flag directives (use them between '%' character and the type conversion):
-
left align the result within the given field width.+
use a sign (+ or -) to prefix the output value if it's of a signed type.#
When it's used with the o, x, or X format, the # flag uses 0, 0x, or 0X, respectively.0
If width is prefixed by 0, leading zeros are added until the minimum width is reached.blank (' ')
use a blank to prefix the output value if it's signed and positive..
the precision specification\<number\>
the width specification field.
# include "ft_getline.h"
ft_getline
-char *ft_getline(int fd);
# include "ft_libft.h"
ft_isascii
- test for ASCII character.ft_isalnum
- alphanumeric character test.ft_isalpha
- alphabetic character test.ft_isdigit
- decimal-digit character test.ft_isprint
- printing character test (space character inclusive).ft_tolower
- upper case to lower case letter conversion.ft_toupper
- lower case to upper case letter conversion.
ft_bzero
- write zeroes to a byte string.ft_memset
- write a byte to a byte string.ft_memchr
- locate byte in byte string.ft_memcmp
- compare byte string.ft_memmove
- copy byte string.ft_memcpy
- copy memory area.ft_strlen
- find length of string.ft_strchr
- locate character in string (first occurrence).ft_strrchr
- locate character in string (last occurence).ft_strnstr
- locate a substring in a string (size-bounded).ft_strncmp
- compare strings (size-bounded).ft_strdup
- save a copy of a string (with malloc).ft_strcat
- concatenate strings (s2 into s1).ft_strncat
- concatenate strings (s2 into s1, size-bounded).ft_strlcpy
- size-bounded string copying.ft_strlcat
- size-bounded string concatenation.
ft_putchar_fd
- output a character to given file.ft_putstr_fd
- output string to given file.ft_putendl_fd
- output string to given file with newline.ft_putnbr_fd
- output integer to given file.ft_itoa
- convert integer to ASCII string.ft_substr
- extract substring from string.ft_strtrim
- trim beginning and end of string with the specified characters.ft_strjoin
- concatenate two strings into a new string (with malloc).ft_split
- split string, with specified character as delimiter, into an array of strings.ft_strmapi
- create new string from modifying string with specified function.
ft_lstnew
- create new list.ft_lstsize
- count elements of a list.ft_lstlast
- find last element of list.ft_lstadd_back
- add new element at end of list.ft_lstadd_front
- add new element at beginning of list.ft_lstdelone
- delete element from list.ft_lstclear
- delete sequence of elements of list from a starting point.ft_lstiter
- apply function to content of all list's elements.ft_lstmap
- apply function to content of all list's elements into new list.