Resolution of all the C exercises that I solved during the 42sp piscine.
Exercises should preferably be compiled using cc or gcc, as below:
$> cc -Wall -Werror -Wextra *.c
$> gcc -Wall -Werror -Wextra *.c
All exercises are done following the Norminette.
-
C 00:
- EX00: ft_putchar
- EX01: ft_print_alphabet
- EX02: ft_print_reverse_alphabet
- EX03: ft_print_numbers
- EX04: ft_is_negative
- EX05: ft_print_comb
- EX06: ft_print_comb2
- EX07: ft_putnbr
- EX08: ft_print_combn
-
C 01:
- EX00: ft_ft
- EX01: ft_ultimate_ft
- EX02: ft_swap
- EX03: ft_div_mod
- EX04: ft_ultimate_div_mod
- EX05: ft_putstr
- EX06: ft_strlen
- EX07: ft_rev_int_tab
- EX08: ft_sort_int_tab
-
C 02:
- EX00: ft_strcpy
- EX01: ft_strncpy
- EX02: ft_str_is_alpha
- EX03: ft_str_is_numeric
- EX04: ft_str_is_lowercase
- EX05: ft_str_is_uppercase
- EX06: ft_str_is_printable
- EX07: ft_strupcase
- EX08: ft_strlowcase
- EX09: ft_strcapitalize
- EX10: ft_strlcpy
- EX11: ft_putstr_non_printable
- EX12: ft_print_memory
-
C 03:
- EX00: ft_strcmp
- EX01: ft_strncmp
- EX02: ft_strcat
- EX03: ft_strncat
- EX04: ft_strstr
- EX05: ft_strlcat
-
C 04:
- EX00: ft_strlen
- EX01: ft_putstr
- EX02: ft_putnbr
- EX03: ft_atoi
- EX04: ft_putnbr_base
- EX05: ft_atoi_base
-
C 05:
- EX00: ft_iterative_factorial
- EX01: ft_recursive_factorial
- EX02: ft_iterative_power
- EX03: ft_recursive_power
- EX04: ft_fibonacci
- EX05: ft_sqrt
- EX06: ft_is_prime
- EX07: ft_find_next_prime
- EX08: ft_ten_queens_puzzle
-
C 06:
- EX00: ft_print_program_name
- EX01: ft_print_params
- EX02: ft_rev_params
- EX03: ft_sort_params
-
C 07:
- EX00: ft_strdup
- EX01: ft_range
- EX02: ft_ultimate_range
- EX03: ft_strjoin
- EX04: ft_convert_base
- EX05: ft_split