├── Fdf ├── auteur ├── lib │ ├── libft │ │ └── src │ │ │ ├── auteur │ │ │ ├── ft_isascii.c │ │ │ ├── ft_isdigit.c │ │ │ ├── ft_isprint.c │ │ │ ├── ft_tolower.c │ │ │ ├── ft_toupper.c │ │ │ ├── ft_putchar.c │ │ │ ├── ft_isalpha.c │ │ │ ├── ft_memdel.c │ │ │ ├── ft_putchar_fd.c │ │ │ ├── ft_isalnum.c │ │ │ ├── ft_strdel.c │ │ │ └── ft_lstadd.c │ └── minilibx_macos │ │ ├── man │ │ └── man1 │ │ ├── .DS_Store │ │ ├── font.xcf │ │ ├── Makefile │ │ └── _README_ ├── palette │ ├── default.fdfcolor │ ├── palette2.fdfcolor │ ├── palette.fdfcolor │ └── palette3.fdfcolor └── maps │ ├── basictest.fdf │ ├── 10-2.fdf │ ├── elem.fdf │ ├── plat.fdf │ ├── 10-70.fdf │ ├── pnp_flat.fdf │ ├── pentenegpos.fdf │ └── 42.fdf ├── Dr_quine ├── auteur ├── Makefile ├── Colleen.c ├── Grace.c └── Sully.c ├── Fractol ├── auteur ├── lib │ ├── libft │ │ └── src │ │ │ ├── auteur │ │ │ ├── ft_isascii.c │ │ │ ├── ft_isdigit.c │ │ │ ├── ft_isprint.c │ │ │ ├── ft_tolower.c │ │ │ ├── ft_toupper.c │ │ │ ├── ft_putchar.c │ │ │ ├── ft_isalpha.c │ │ │ ├── ft_memdel.c │ │ │ ├── ft_putchar_fd.c │ │ │ ├── ft_putstr.c │ │ │ ├── ft_strclr.c │ │ │ ├── ft_isalnum.c │ │ │ ├── ft_putstr_fd.c │ │ │ ├── ft_strdel.c │ │ │ ├── ft_lstadd.c │ │ │ └── ft_putendl.c │ └── minilibx_macos │ │ ├── font.xcf │ │ ├── .DS_Store │ │ ├── Makefile │ │ ├── mlx_opengl.h │ │ └── _README_ └── readme.md ├── Libft ├── auteur ├── ft_isascii.c ├── ft_isdigit.c ├── ft_isprint.c ├── ft_tolower.c ├── ft_toupper.c ├── ft_putchar.c ├── ft_isalpha.c ├── ft_memdel.c ├── ft_putchar_fd.c ├── ft_putstr.c ├── ft_strclr.c ├── ft_isalnum.c ├── ft_putstr_fd.c ├── ft_strdel.c ├── ft_lstadd.c ├── ft_putendl.c ├── ft_clamp.c ├── ft_putendl_fd.c └── ft_bzero.c ├── Malloc ├── auteur ├── test │ └── run.sh ├── readme.md ├── libft │ └── src │ │ ├── ft_isascii.c │ │ ├── ft_isdigit.c │ │ ├── ft_isprint.c │ │ ├── ft_tolower.c │ │ ├── ft_toupper.c │ │ ├── ft_putchar.c │ │ ├── ft_isalpha.c │ │ ├── ft_memdel.c │ │ ├── ft_putchar_fd.c │ │ ├── ft_putstr.c │ │ ├── ft_strclr.c │ │ ├── ft_isalnum.c │ │ ├── ft_putstr_fd.c │ │ ├── ft_boolean.c │ │ ├── ft_lstadd.c │ │ └── ft_putendl.c └── libftprintf │ └── src │ └── print_char.c ├── RTv1 ├── auteur ├── lib │ ├── libft │ │ └── src │ │ │ ├── auteur │ │ │ ├── ft_isascii.c │ │ │ ├── ft_isdigit.c │ │ │ ├── ft_isprint.c │ │ │ ├── ft_tolower.c │ │ │ ├── ft_toupper.c │ │ │ ├── ft_putchar.c │ │ │ ├── ft_isalpha.c │ │ │ ├── ft_memdel.c │ │ │ ├── ft_strclr.c │ │ │ ├── ft_putchar_fd.c │ │ │ ├── ft_putstr.c │ │ │ ├── ft_isalnum.c │ │ │ ├── ft_putstr_fd.c │ │ │ ├── ft_strdel.c │ │ │ ├── ft_lstadd.c │ │ │ └── ft_putendl.c │ ├── minilibx_macos │ │ ├── .DS_Store │ │ ├── font.xcf │ │ ├── Makefile │ │ └── _README_ │ └── libvec │ │ └── src │ │ ├── vec2_dot.c │ │ ├── vec2_magnitude.c │ │ ├── vec3_magnitude.c │ │ ├── vec3_up.c │ │ ├── vec2.c │ │ ├── vec3_dot.c │ │ ├── vec3_right.c │ │ └── vec3_zero.c └── resource │ └── scene │ ├── cylinder.scene │ ├── singlesphere.scene │ └── triplesphere.scene ├── Wolf3d ├── auteur ├── lib │ ├── libft │ │ └── src │ │ │ ├── auteur │ │ │ ├── ft_isascii.c │ │ │ ├── ft_isdigit.c │ │ │ ├── ft_isprint.c │ │ │ ├── ft_tolower.c │ │ │ ├── ft_toupper.c │ │ │ ├── ft_putchar.c │ │ │ ├── ft_isalpha.c │ │ │ ├── ft_memdel.c │ │ │ ├── ft_putchar_fd.c │ │ │ ├── ft_putstr.c │ │ │ ├── ft_strclr.c │ │ │ ├── ft_isalnum.c │ │ │ ├── ft_putstr_fd.c │ │ │ ├── ft_strdel.c │ │ │ ├── ft_lstadd.c │ │ │ └── ft_putendl.c │ └── minilibx_macos │ │ ├── .DS_Store │ │ ├── font.xcf │ │ ├── Makefile │ │ └── _README_ └── resource │ ├── template │ ├── pack_1.template │ ├── pack_2.template │ ├── pack_4.template │ └── pack_3.template │ └── map │ ├── default.map │ └── labyrinth.map ├── Ft_printf ├── auteur ├── readme.md └── src │ ├── print_char.c │ └── print_arg_ptr.c ├── Get_next_line ├── auteur ├── libft │ └── src │ │ ├── auteur │ │ ├── ft_isascii.c │ │ ├── ft_isdigit.c │ │ ├── ft_isprint.c │ │ ├── ft_tolower.c │ │ ├── ft_toupper.c │ │ ├── ft_putchar.c │ │ ├── ft_isalpha.c │ │ ├── ft_memdel.c │ │ ├── ft_putchar_fd.c │ │ ├── ft_strdel.c │ │ ├── ft_lstadd.c │ │ └── ft_isalnum.c └── readme.md ├── Piscine_reloaded ├── ex01 │ └── z ├── auteur ├── ex05 │ └── "\?$*'KwaMe'*$?\" ├── ex04 │ └── MAC.sh ├── ex02 │ └── clean ├── ex03 │ └── find_sh.sh ├── ex09 │ └── ft_ft.c ├── ex11 │ └── ft_div_mod.c ├── ex10 │ └── ft_swap.c ├── ex22 │ └── ft_abs.h └── ex08 │ └── ft_is_negative.c ├── Push_swap ├── auteur └── lib │ └── libft │ └── src │ ├── auteur │ ├── ft_isascii.c │ ├── ft_isdigit.c │ ├── ft_isprint.c │ ├── ft_tolower.c │ ├── ft_toupper.c │ ├── ft_putchar.c │ ├── ft_isalpha.c │ ├── ft_memdel.c │ ├── ft_strclr.c │ ├── ft_putchar_fd.c │ ├── ft_putstr.c │ ├── ft_isalnum.c │ ├── ft_putstr_fd.c │ ├── ft_strdel.c │ ├── ft_lstadd.c │ └── ft_putendl.c ├── .gitignore ├── Fillit ├── lib │ └── libft.a └── readme.md ├── screenshots ├── screenshot_fdf_1.png ├── screenshot_fdf_2.png ├── screenshot_rtv1_1.png ├── screenshot_rtv1_2.png ├── screenshot_rtv1_3.png ├── screenshot_wolf3d_1.png ├── screenshot_wolf3d_2.png ├── screenshot_fractol_1.png └── screenshot_fractol_2.png ├── nm-otool └── libs │ ├── libft │ └── src │ │ ├── ft_isascii.c │ │ ├── ft_isdigit.c │ │ ├── ft_isprint.c │ │ ├── ft_tolower.c │ │ ├── ft_toupper.c │ │ ├── ft_putchar.c │ │ ├── ft_isalpha.c │ │ ├── ft_memdel.c │ │ ├── ft_strclr.c │ │ ├── ft_putchar_fd.c │ │ ├── ft_putstr.c │ │ ├── ft_isalnum.c │ │ ├── ft_putstr_fd.c │ │ ├── ft_boolean.c │ │ └── ft_putendl.c │ └── libftprintf │ └── src │ └── print_char.c └── Libvec └── src ├── vec2_dot.c ├── vec2_magnitude.c ├── vec3_magnitude.c ├── vec3_up.c ├── vec2.c ├── vec3_dot.c ├── vec3_right.c ├── vec3_zero.c ├── vec3_forward.c └── vec2i.c /Fdf/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Dr_quine/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Fractol/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Libft/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Malloc/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /RTv1/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Wolf3d/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Ft_printf/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Get_next_line/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex01/z: -------------------------------------------------------------------------------- 1 | Z 2 | -------------------------------------------------------------------------------- /Push_swap/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Fdf/lib/minilibx_macos/man/man1: -------------------------------------------------------------------------------- 1 | man3 -------------------------------------------------------------------------------- /Piscine_reloaded/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex05/"\?$*'KwaMe'*$?\": -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/auteur: -------------------------------------------------------------------------------- 1 | wwatkins 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | *.a 4 | *.o 5 | *.out 6 | *.DS_Store 7 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex04/MAC.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ifconfig | grep "ether" | cut -d " " -f 2 3 | -------------------------------------------------------------------------------- /Fillit/lib/libft.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Fillit/lib/libft.a -------------------------------------------------------------------------------- /Piscine_reloaded/ex02/clean: -------------------------------------------------------------------------------- 1 | find . -type f \( -name '*~' -o -name '#*#' \) -print -delete 2 | -------------------------------------------------------------------------------- /Fdf/palette/default.fdfcolor: -------------------------------------------------------------------------------- 1 | 1 2 | 5 3 | 0xFFFFFF 4 | 0xFFFFFF 5 | 0xFFFFFF 6 | 0xFFFFFF 7 | 0xFFFFFF 8 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex03/find_sh.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find . -name '*.sh' | rev | cut -d "/" -f 1 | rev | cut -d "." -f 1 3 | -------------------------------------------------------------------------------- /Fdf/lib/minilibx_macos/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Fdf/lib/minilibx_macos/.DS_Store -------------------------------------------------------------------------------- /Fdf/lib/minilibx_macos/font.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Fdf/lib/minilibx_macos/font.xcf -------------------------------------------------------------------------------- /RTv1/lib/minilibx_macos/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/RTv1/lib/minilibx_macos/.DS_Store -------------------------------------------------------------------------------- /RTv1/lib/minilibx_macos/font.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/RTv1/lib/minilibx_macos/font.xcf -------------------------------------------------------------------------------- /screenshots/screenshot_fdf_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_fdf_1.png -------------------------------------------------------------------------------- /screenshots/screenshot_fdf_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_fdf_2.png -------------------------------------------------------------------------------- /screenshots/screenshot_rtv1_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_rtv1_1.png -------------------------------------------------------------------------------- /screenshots/screenshot_rtv1_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_rtv1_2.png -------------------------------------------------------------------------------- /screenshots/screenshot_rtv1_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_rtv1_3.png -------------------------------------------------------------------------------- /Fractol/lib/minilibx_macos/font.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Fractol/lib/minilibx_macos/font.xcf -------------------------------------------------------------------------------- /Wolf3d/lib/minilibx_macos/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Wolf3d/lib/minilibx_macos/.DS_Store -------------------------------------------------------------------------------- /Wolf3d/lib/minilibx_macos/font.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Wolf3d/lib/minilibx_macos/font.xcf -------------------------------------------------------------------------------- /screenshots/screenshot_wolf3d_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_wolf3d_1.png -------------------------------------------------------------------------------- /screenshots/screenshot_wolf3d_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_wolf3d_2.png -------------------------------------------------------------------------------- /Fractol/lib/minilibx_macos/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/Fractol/lib/minilibx_macos/.DS_Store -------------------------------------------------------------------------------- /screenshots/screenshot_fractol_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_fractol_1.png -------------------------------------------------------------------------------- /screenshots/screenshot_fractol_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wwatkns/42_C_Projects/HEAD/screenshots/screenshot_fractol_2.png -------------------------------------------------------------------------------- /Malloc/test/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | export DYLD_LIBRARY_PATH=. 3 | export DYLD_INSERT_LIBRARIES="libft_malloc.so" 4 | export DYLD_FORCE_FLAT_NAMESPACE=1 5 | $@ 6 | -------------------------------------------------------------------------------- /Get_next_line/readme.md: -------------------------------------------------------------------------------- 1 | # Get_next_line 2 | 3 | _The goal of this project is to make you code a function that returns a line finished by a '\n' read from a file descriptor._ 4 | -------------------------------------------------------------------------------- /Fdf/maps/basictest.fdf: -------------------------------------------------------------------------------- 1 | 0 0 1 2 3 4 5 6 7 8 9 2 | 0 0 0 1 2 3 4 5 6 7 8 3 | 0 0 0 0 1 2 3 4 5 6 7 4 | 0 0 0 0 0 1 2 3 4 5 6 5 | 0 0 0 0 0 0 1 2 3 4 5 6 | 0 0 0 0 0 0 0 1 2 3 4 7 | 0 0 0 0 0 0 0 0 1 2 3 8 | 0 0 0 0 0 0 0 0 0 1 2 9 | 0 0 0 0 0 0 0 0 0 0 1 10 | -------------------------------------------------------------------------------- /Fdf/palette/palette2.fdfcolor: -------------------------------------------------------------------------------- 1 | 2 2 | 8 3 | 0x05668D 4 | 0x028090 5 | 0x00A896 6 | 0xF0F3BD 7 | 0x3B7A3B 8 | 0x91CB3E 9 | 0x503B31 10 | 0xDCD2C9 11 | 12 | 0xB5CA8D 13 | 0x8BB174 14 | 0x426B69 15 | 0x222E50 16 | 0x2A4849 17 | 0x7B1E7A 18 | 0xB33F62 19 | 0xF9564F 20 | -------------------------------------------------------------------------------- /Fdf/maps/10-2.fdf: -------------------------------------------------------------------------------- 1 | 1 0 0 -1 -1 0 1 1 0 0 2 | -1 0 0 0 1 0 0 0 0 0 3 | -1 1 0 0 -1 1 0 0 0 1 4 | 1 -1 0 1 1 -1 0 0 -1 0 5 | 1 -1 -1 0 -1 0 0 0 -1 -1 6 | -1 1 0 1 1 0 1 0 0 0 7 | 0 -1 -1 0 0 1 0 0 0 1 8 | 0 0 0 0 1 0 -1 0 0 0 9 | -1 -1 0 1 -1 0 1 0 0 1 10 | 0 0 1 -1 0 -1 0 0 0 0 11 | -------------------------------------------------------------------------------- /Wolf3d/resource/template/pack_1.template: -------------------------------------------------------------------------------- 1 | 6 2 | w: ./resource/texture/pack_1/wall_t_1.xpm 3 | w: ./resource/texture/pack_1/wall_2.xpm 4 | w: ./resource/texture/pack_1/wall_3.xpm 5 | w: ./resource/texture/pack_1/wall_4.xpm 6 | f: ./resource/texture/pack_1/floor_1.xpm 7 | c: ./resource/texture/pack_1/ceiling_1.xpm 8 | -------------------------------------------------------------------------------- /Fdf/maps/elem.fdf: -------------------------------------------------------------------------------- 1 | 0 0 0 0 0 0 0 0 0 0 2 | 0 10 10 10 10 10 10 10 10 0 3 | 0 10 20 15 12 15 17 20 10 0 4 | 0 10 15 10 12 15 15 15 10 0 5 | 0 5 15 10 12 15 15 13 10 0 6 | 0 5 10 5 7 12 12 12 10 0 7 | 0 5 7 1 2 7 5 5 7 0 8 | 0 3 0 0 1 2 2 2 5 0 9 | 0 1 0 0 0 0 0 0 3 0 10 | 0 0 0 0 0 0 0 0 0 0 11 | -------------------------------------------------------------------------------- /Fdf/maps/plat.fdf: -------------------------------------------------------------------------------- 1 | 0 0 0 0 0 0 0 0 0 0 2 | 0 0 0 0 0 0 0 0 0 0 3 | 0 0 0 0 0 0 0 0 0 0 4 | 0 0 0 0 0 0 0 0 0 0 5 | 0 0 0 0 0 0 0 0 0 0 6 | 0 0 0 0 0 0 0 0 0 0 7 | 0 0 0 0 0 0 0 0 0 0 8 | 0 0 0 0 0 0 0 0 0 0 9 | 0 0 0 0 0 0 0 0 0 0 10 | 0 0 0 0 0 0 0 0 0 0 11 | 0 0 0 0 0 0 0 0 0 0 12 | 0 0 0 0 0 0 0 0 0 0 13 | 0 0 0 0 0 0 0 0 0 0 14 | 0 0 0 0 0 0 0 0 0 0 -------------------------------------------------------------------------------- /Dr_quine/Makefile: -------------------------------------------------------------------------------- 1 | FLAG= -Wall -Werror -Wextra 2 | CC= gcc 3 | 4 | all: 5 | $(CC) $(FLAG) -o Colleen Colleen.c 6 | $(CC) $(FLAG) -o Grace Grace.c 7 | $(CC) $(FLAG) -o Sully Sully.c 8 | 9 | clean: 10 | rm -f Grace_kid.c 11 | 12 | fclean: clean 13 | rm -f Sully 14 | rm -f Grace 15 | rm -f Colleen 16 | 17 | re: fclean all 18 | 19 | .PHONY: clean fclean re all 20 | -------------------------------------------------------------------------------- /Fdf/maps/10-70.fdf: -------------------------------------------------------------------------------- 1 | -6 -67 -61 -38 9 -16 -16 32 56 16 2 | 27 -63 23 -56 63 10 33 -9 -55 69 3 | -44 -23 -58 12 -55 0 21 -25 27 48 4 | 1 41 -38 57 38 -17 -50 -2 -63 7 5 | 32 -46 -11 30 10 13 -48 -37 66 -53 6 | -54 34 51 -40 -33 52 -62 -37 -54 -9 7 | -58 40 -30 -9 59 7 -66 -12 -18 41 8 | -50 67 36 13 12 -2 -28 10 -60 -58 9 | 3 -27 -52 56 26 -52 59 -31 -48 -6 10 | -59 -30 50 36 5 -11 0 60 -24 -34 11 | -------------------------------------------------------------------------------- /Fdf/palette/palette.fdfcolor: -------------------------------------------------------------------------------- 1 | 5 2 | 5 3 | 0x26532B 4 | 0x5A8D48 5 | 0x7C5A4D 6 | 0x94999F 7 | 0xFFF9F5 8 | 9 | 0x31231E 10 | 0x5A3A31 11 | 0x84714F 12 | 0xE3D888 13 | 0xE2F1AF 14 | 15 | 0x718A8D 16 | 0x875C5C 17 | 0x585858 18 | 0x92BD6B 19 | 0x7AB288 20 | 21 | 0x293132 22 | 0x474044 23 | 0x4F5165 24 | 0x547AA5 25 | 0x50D8D7 26 | 27 | 0xFFBD00 28 | 0xFF5400 29 | 0xFF0054 30 | 0x9E0059 31 | 0x390099 32 | -------------------------------------------------------------------------------- /Ft_printf/readme.md: -------------------------------------------------------------------------------- 1 | # Ft_printf 2 | 3 | _The goal of this project is to make you recode the function "printf"._ 4 | 5 | __You must handle:__ 6 | > - The following conversion: `s``S``p``d``D``i``o``O``u``U``x``X``c``C`. 7 | > - The `%%`. 8 | > - The following flags: `#``0``-``+` and `space`. 9 | > - The minimum field size. 10 | > - The accuracy. 11 | > - The following modifiers: `hh``h``l``ll``j``z`. 12 | -------------------------------------------------------------------------------- /Wolf3d/resource/template/pack_2.template: -------------------------------------------------------------------------------- 1 | 8 2 | w: ./resource/texture/pack_2/wood_1.xpm 3 | w: ./resource/texture/pack_2/bedrock.xpm 4 | w: ./resource/texture/pack_2/bookshelf.xpm 5 | w: ./resource/texture/pack_2/stone_pilar.xpm 6 | w: ./resource/texture/pack_2/temple_stone.xpm 7 | w: ./resource/texture/pack_2/gravel.xpm 8 | f: ./resource/texture/pack_2/wood_2.xpm 9 | c: ./resource/texture/pack_2/dirt.xpm 10 | -------------------------------------------------------------------------------- /Fdf/lib/minilibx_macos/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | 4 | NOM=libmlx.a 5 | SRC= mlx_shaders.c mlx_new_window.m mlx_init_loop.m mlx_new_image.m mlx_xpm.c mlx_int_str_to_wordtab.c 6 | OBJ1=$(SRC:.c=.o) 7 | OBJ=$(OBJ1:.m=.o) 8 | CFLAGS+=-O2 9 | 10 | all: $(NOM) 11 | 12 | $(NOM): $(OBJ) 13 | ar -r $(NOM) $(OBJ) 14 | ranlib $(NOM) 15 | 16 | clean: 17 | rm -f $(NOM) $(OBJ) *~ 18 | rm -f mlx_app 19 | 20 | re: clean all 21 | -------------------------------------------------------------------------------- /RTv1/lib/minilibx_macos/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | 4 | NOM=libmlx.a 5 | SRC= mlx_shaders.c mlx_new_window.m mlx_init_loop.m mlx_new_image.m mlx_xpm.c mlx_int_str_to_wordtab.c 6 | OBJ1=$(SRC:.c=.o) 7 | OBJ=$(OBJ1:.m=.o) 8 | CFLAGS+=-O2 9 | 10 | all: $(NOM) 11 | 12 | $(NOM): $(OBJ) 13 | ar -r $(NOM) $(OBJ) 14 | ranlib $(NOM) 15 | 16 | clean: 17 | rm -f $(NOM) $(OBJ) *~ 18 | rm -f mlx_app 19 | 20 | re: clean all 21 | -------------------------------------------------------------------------------- /Wolf3d/lib/minilibx_macos/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | 4 | NOM=libmlx.a 5 | SRC= mlx_shaders.c mlx_new_window.m mlx_init_loop.m mlx_new_image.m mlx_xpm.c mlx_int_str_to_wordtab.c 6 | OBJ1=$(SRC:.c=.o) 7 | OBJ=$(OBJ1:.m=.o) 8 | CFLAGS+=-O2 9 | 10 | all: $(NOM) 11 | 12 | $(NOM): $(OBJ) 13 | ar -r $(NOM) $(OBJ) 14 | ranlib $(NOM) 15 | 16 | clean: 17 | rm -f $(NOM) $(OBJ) *~ 18 | rm -f mlx_app 19 | 20 | re: clean all 21 | -------------------------------------------------------------------------------- /Wolf3d/resource/template/pack_4.template: -------------------------------------------------------------------------------- 1 | 8 2 | w: ./resource/texture/pack_2/wood_1.xpm 3 | w: ./resource/texture/pack_2/wood_2.xpm 4 | w: ./resource/texture/pack_2/bookshelf.xpm 5 | w: ./resource/texture/pack_2/sand_stone_slab.xpm 6 | w: ./resource/texture/pack_2/stone_pilar.xpm 7 | w: ./resource/texture/pack_2/sand_stone.xpm 8 | f: ./resource/texture/pack_2/wood_2.xpm 9 | c: ./resource/texture/pack_2/wood_2.xpm 10 | -------------------------------------------------------------------------------- /Fdf/maps/pnp_flat.fdf: -------------------------------------------------------------------------------- 1 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 | -------------------------------------------------------------------------------- /Fractol/lib/minilibx_macos/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | 4 | NOM=libmlx.a 5 | SRC= mlx_opengl.m mlx_shaders.c mlx_new_window.m mlx_init_loop.m mlx_new_image.m mlx_xpm.c mlx_int_str_to_wordtab.c 6 | OBJ1=$(SRC:.c=.o) 7 | OBJ=$(OBJ1:.m=.o) 8 | CFLAGS+=-O2 9 | 10 | all: $(NOM) 11 | 12 | $(NOM): $(OBJ) 13 | ar -r $(NOM) $(OBJ) 14 | ranlib $(NOM) 15 | 16 | clean: 17 | rm -f $(NOM) $(OBJ) *~ 18 | rm -f mlx_app 19 | 20 | re: clean all 21 | -------------------------------------------------------------------------------- /RTv1/resource/scene/cylinder.scene: -------------------------------------------------------------------------------- 1 | camera 2 | { 3 | pos = { 0, 0.1, 0 } 4 | fov = 120 5 | } 6 | light 7 | { 8 | pos = { 0, 5, 5 } 9 | color = 0xFFFFFF 10 | intensity = 1.0 11 | } 12 | object 13 | { 14 | type = cylinder 15 | pos = { 0, 1, 10 } 16 | dir = { 0, 0, 45 } 17 | scale = 1.0 18 | material 19 | { 20 | color = 0xFF0000 21 | ambient = 0.075 22 | diffuse = 0.925 23 | specular = 50.0 24 | shininess = 1024 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Dr_quine/Colleen.c: -------------------------------------------------------------------------------- 1 | #include 2 | int func(){return(0);} 3 | /* 4 | un commentaire 5 | */ 6 | int main(){ 7 | /* 8 | un autre commentaire 9 | */ 10 | char*a="#include%1$cint func(){return(0);}%1$c/*%1$c%4$cun commentaire%1$c*/%1$cint main(){%1$c%4$c/*%1$c%4$c%4$cun autre commentaire%1$c%4$c*/%1$c%4$cchar*a=%2$c%3$s%2$c;%1$c%4$cprintf(a,10,34,a,9);%1$c%4$creturn(0);%1$c}%1$c"; 11 | printf(a,10,34,a,9); 12 | return(0); 13 | } 14 | -------------------------------------------------------------------------------- /Fillit/readme.md: -------------------------------------------------------------------------------- 1 | # Fillit 2 | 3 | _This is a project allowing you to discover and/or get used to a recurrent problematic in programmation: the search of an_ 4 | _optimal solution among a very large number of possibilities, in a reasonable time. In the case of this project, it will be_ 5 | _about the arrangement of Tetriminos between them and determine the smallest square able to contain them._ 6 | 7 | _A Tetriminos is a geometric figure formed from 4 blocks that you know thanks to the famous game Tetris._ 8 | 9 | -------------------------------------------------------------------------------- /Fdf/maps/pentenegpos.fdf: -------------------------------------------------------------------------------- 1 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 2 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 3 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 4 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 5 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 6 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 7 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 8 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 9 | -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 10 | -------------------------------------------------------------------------------- /Fdf/palette/palette3.fdfcolor: -------------------------------------------------------------------------------- 1 | 2 2 | 18 3 | 0x05668D 4 | 0x028090 5 | 0x1FAA66 6 | 0x3FB945 7 | 0x88CD43 8 | 0xFBF070 9 | 0xFDE670 10 | 0xFAD24F 11 | 0xF9D14E 12 | 0xF0B449 13 | 0xEE984A 14 | 0xDB8D4B 15 | 0xCD734F 16 | 0xB07770 17 | 0xB6908D 18 | 0x998BAE 19 | 0xBAB5CB 20 | 0xFFFFFE 21 | 22 | 0x002B43 23 | 0x054267 24 | 0x05668D 25 | 0x028090 26 | 0x1FAA66 27 | 0x3FB945 28 | 0x88CD43 29 | 0xFBF070 30 | 0xFDE670 31 | 0xFAD24F 32 | 0xF9D14E 33 | 0xF0B449 34 | 0xEE984A 35 | 0xDB8D4B 36 | 0xCD734F 37 | 0xB07770 38 | 0xB6908D 39 | 0x998BAE 40 | -------------------------------------------------------------------------------- /Wolf3d/resource/map/default.map: -------------------------------------------------------------------------------- 1 | 15 2 | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 | 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1 5 | 1 0 0 1 1 1 0 0 0 0 1 1 0 0 1 6 | 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 7 | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 8 | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 9 | 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 10 | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 11 | 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 12 | 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 13 | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 14 | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 15 | 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 16 | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 | -------------------------------------------------------------------------------- /Malloc/readme.md: -------------------------------------------------------------------------------- 1 | # Malloc 2 | 3 | _This project is about recoding the malloc, free and realloc function._ 4 | 5 | __Installation:__ 6 | 7 | * `git clone https://github.com/wwatkins42/42Projects.git` 8 | * `cd ./Malloc` 9 | * `make` 10 | * `./test/run.sh ./[file]` 11 | 12 | **Usage:** 13 | * `./test/run.sh ./[file]` 14 | * `run.sh is a script used to inject my malloc library to use in executables instead of the default implementation of malloc.` 15 | 16 | **Example:** 17 | * `gcc ./test/test1 -o test1` 18 | * `./test/run.sh /usr/bin/time -l ./test1` 19 | -------------------------------------------------------------------------------- /Dr_quine/Grace.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | /* 5 | commentaire 6 | */ 7 | #define C(fd) close(fd); 8 | #define P "#include%1$c#include%1$c#include%1$c/*%1$c%4$ccommentaire%1$c*/%1$c#define C(fd) close(fd);%1$c#define P %2$c%3$s%2$c%1$c#define M int main(void){char*a=P;int fd=open(%2$cGrace_kid.c%2$c,O_WRONLY|O_CREAT);dprintf(fd,a,10,34,a,9);C(fd);return(0);}%1$cM%1$c" 9 | #define M int main(void){char*a=P;int fd=open("Grace_kid.c",O_WRONLY|O_CREAT);dprintf(fd,a,10,34,a,9);C(fd);return(0);} 10 | M 11 | -------------------------------------------------------------------------------- /Wolf3d/resource/template/pack_3.template: -------------------------------------------------------------------------------- 1 | 11 2 | w: ./resource/texture/pack_2/stone_brick_wall.xpm 3 | w: ./resource/texture/pack_2/mossy_stone_brick_wall.xpm 4 | w: ./resource/texture/pack_2/temple_stone.xpm 5 | w: ./resource/texture/pack_2/stone_pilar.xpm 6 | w: ./resource/texture/pack_2/wood_1.xpm 7 | w: ./resource/texture/pack_2/wood_2.xpm 8 | w: ./resource/texture/pack_2/bookshelf.xpm 9 | w: ./resource/texture/pack_2/blue_stone.xpm 10 | w: ./resource/texture/pack_2/bedrock.xpm 11 | f: ./resource/texture/pack_2/gravel.xpm 12 | c: ./resource/texture/pack_2/dirt.xpm 13 | -------------------------------------------------------------------------------- /Fdf/maps/42.fdf: -------------------------------------------------------------------------------- 1 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 | 0 0 10 10 0 0 10 10 0 0 0 10 10 10 10 10 0 0 0 4 | 0 0 10 10 0 0 10 10 0 0 0 0 0 0 0 10 10 0 0 5 | 0 0 10 10 0 0 10 10 0 0 0 0 0 0 0 10 10 0 0 6 | 0 0 10 10 10 10 10 10 0 0 0 0 10 10 10 10 0 0 0 7 | 0 0 0 10 10 10 10 10 0 0 0 10 10 0 0 0 0 0 0 8 | 0 0 0 0 0 0 10 10 0 0 0 10 10 0 0 0 0 0 0 9 | 0 0 0 0 0 0 10 10 0 0 0 10 10 10 10 10 10 0 0 10 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 | -------------------------------------------------------------------------------- /Fractol/lib/minilibx_macos/mlx_opengl.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** mlx_opengl.h 4 | ** 5 | ** public include, use it after mlx.h 6 | ** designed only for minilibx_macos 7 | ** 8 | */ 9 | 10 | void *mlx_new_opengl_window(void *mlx_ptr, int size_x, int size_y, char *title); 11 | 12 | /* create an opengl window. put_image & pixel_put & string_put do not work there. */ 13 | 14 | int mlx_opengl_swap_buffers(void *win_ptr); 15 | 16 | /* the created window is double buffered. Use this funct to swap buffers */ 17 | /* this funct will call glFlush(). Don't call it. */ 18 | 19 | int mlx_opengl_window_set_context(void *win_ptr); 20 | 21 | /* in case multiple opengl windows are present, change opengl active context */ 22 | -------------------------------------------------------------------------------- /Wolf3d/resource/map/labyrinth.map: -------------------------------------------------------------------------------- 1 | 17 2 | 1 1 1 1 1 1 5 5 1 1 1 1 4 4 4 1 1 1 3 | 1 1 1 2 2 1 0 0 1 1 1 1 0 0 0 1 1 1 4 | 1 2 0 0 2 0 0 0 1 0 0 0 0 1 0 0 2 1 5 | 1 1 0 0 0 0 4 0 0 0 6 6 0 1 0 0 2 1 6 | 1 1 0 0 5 6 6 6 6 5 6 0 0 1 0 4 1 1 7 | 1 1 0 0 6 0 0 7 7 6 0 0 0 0 0 0 2 1 8 | 1 1 0 0 6 0 0 0 8 6 0 1 0 5 5 0 1 1 9 | 1 1 0 0 6 0 0 7 7 6 0 1 0 5 0 0 1 1 10 | 1 2 0 0 5 4 0 4 5 5 0 5 0 1 0 1 1 1 11 | 1 2 2 0 0 0 0 0 0 4 0 9 0 0 0 0 1 1 12 | 1 2 2 0 5 0 1 1 0 1 0 9 0 9 9 9 7 1 13 | 1 2 0 0 0 0 0 7 0 2 0 0 0 0 0 0 7 1 14 | 1 1 0 1 0 5 0 7 0 0 0 6 6 0 0 0 7 1 15 | 1 1 0 1 0 0 0 3 0 3 0 0 0 6 0 7 3 1 16 | 1 2 0 5 5 5 0 7 0 0 0 4 0 6 6 5 2 1 17 | 1 2 0 0 0 0 0 7 0 0 0 4 0 0 0 0 2 1 18 | 1 1 1 1 1 0 1 3 3 2 0 1 1 1 1 1 1 1 19 | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 | -------------------------------------------------------------------------------- /RTv1/resource/scene/singlesphere.scene: -------------------------------------------------------------------------------- 1 | camera 2 | { 3 | pos = { 0, 0.2, 0 } 4 | rot = { 0, 0, 0 } 5 | fov = 60 6 | } 7 | light 8 | { 9 | pos = { 10, 7.5, 6 } 10 | color = 0xFF0000 11 | intensity = 1.0 12 | } 13 | light 14 | { 15 | pos = { -10, 7.5, 6 } 16 | color = 0x00FF00 17 | intensity = 1.0 18 | } 19 | light 20 | { 21 | pos = { 0, 7.5, 6 } 22 | color = 0x0000FF 23 | intensity = 1.0 24 | } 25 | object 26 | { 27 | type = sphere 28 | pos = { 0, 1, 10 } 29 | scale = 1.0 30 | material 31 | { 32 | color = 0xFFFFFF 33 | ambient = 0.005 34 | diffuse = 0.995 35 | specular = 1.7 36 | shininess = 256 37 | } 38 | } 39 | object 40 | { 41 | type = plane 42 | pos = { 0, -0.25, 10 } 43 | dir = { 0, 1, 0} 44 | scale = 0.5 45 | material 46 | { 47 | color = 0xFFFFFF 48 | ambient = 0.005 49 | diffuse = 0.995 50 | specular = 1.7 51 | shininess = 256 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Dr_quine/Sully.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #define P "#include%3$c#include%3$c#include%3$c#include%3$c#include%3$c#define P %4$c%5$s%4$c%3$cint main(){int i = %1$d;char*a=P;char f[64];char e[64];bzero(f,64);bzero(e,64);sprintf(f,%4$cSully_%6$cd.c%4$c,i);int fd=open(f,O_RDWR|O_CREAT,0666);dprintf(fd,a,i-1,9,10,34,a,37);close(fd);if(i>0){sprintf(e,%4$cclang %6$c1$s -o Sully_%6$c2$d && ./Sully_%6$c2$d%4$c,f,i);system(e);}else if(i==0){sprintf(e,%4$cclang %6$cs -o Sully_%6$cd%4$c,f,i);system(e);}return(0);}%3$c" 7 | int main(){int i = 5;char*a=P;char f[64];char e[64];bzero(f,64);bzero(e,64);sprintf(f,"Sully_%d.c",i);int fd=open(f,O_RDWR|O_CREAT,0666);dprintf(fd,a,i-1,9,10,34,a,37);close(fd);if(i>0){sprintf(e,"clang %1$s -o Sully_%2$d && ./Sully_%2$d",f,i);system(e);}else if(i==0){sprintf(e,"clang %s -o Sully_%d",f,i);system(e);}return(0);} 8 | -------------------------------------------------------------------------------- /RTv1/resource/scene/triplesphere.scene: -------------------------------------------------------------------------------- 1 | camera 2 | { 3 | pos = { 0, 0, 0 } 4 | rot = { -5, 0, 0 } 5 | fov = 60 6 | gamma = 0.91 7 | } 8 | light 9 | { 10 | pos = { 0, 5, 5 } 11 | color = 0xFFFFFF 12 | intensity = 1.0 13 | } 14 | object 15 | { 16 | type = sphere 17 | pos = { 0, 1, 10 } 18 | scale = 1.0 19 | material 20 | { 21 | color = 0xC8233E 22 | ambient = 0.075 23 | diffuse = 0.925 24 | specular = 50.0 25 | shininess = 1024 26 | reflective = 1.0 27 | } 28 | } 29 | object 30 | { 31 | type = sphere 32 | pos = { 2, 1, 10 } 33 | scale = 1.0 34 | material 35 | { 36 | color = 0x00FF00 37 | ambient = 0.075 38 | diffuse = 0.925 39 | specular = 50.0 40 | shininess = 1024 41 | reflective = 0.25 42 | } 43 | } 44 | object 45 | { 46 | type = sphere 47 | pos = { -2, 1, 10 } 48 | scale = 1.0 49 | material 50 | { 51 | color = 0xFC4A3F 52 | ambient = 0.075 53 | diffuse = 0.925 54 | specular = 50.0 55 | shininess = 1024 56 | reflective = 0 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex09/ft_ft.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_ft.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/11/05 16:10:46 by wwatkins #+# #+# */ 9 | /* Updated: 2016/11/05 16:14:47 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | void ft_ft(int *nbr) 14 | { 15 | *nbr = 42; 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/minilibx_macos/_README_: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 14/10/2015 4 | # ol@staff.42.fr 5 | # 6 | 7 | MinilibX 8 | 9 | Interface simplifiee de programmation graphique pour debutant 10 | # 11 | 12 | Cette minilibX est la version native pour MacOSX. 13 | [ Elle n'utilise plus les librairies graphiques X11, ni XQuartz le serveur X pour MacOSX. ] 14 | L'interface / l'API, reste identique a la version precedente. Les man presents dans la minilibX 15 | d'origine sont toujours valides. 16 | 17 | Le fichier mlx.h a inclure dans vos programmes rapelle les petites differences de comportement 18 | entre les 2 versions, dues a la gestion graphique differente selon les systemes d'exploitation. 19 | 20 | # 21 | 22 | Cette version utilise le systeme de fenetrage Cocoa de MacOSX ( AppKit ), et les primitives 23 | graphiques OpenGL moderne. 24 | 25 | # 26 | 27 | License: la MinilibX macos est fournie sous license BSD: Copyright Olivier Crouzet - 2014-2015 28 | la MinilibX est fournie sous license BSD: Copyright Olivier Crouzet - 1999-2015 29 | # 30 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_isascii.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isascii.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:07 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:11:46 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isascii(int c) 14 | { 15 | return (0 <= c && c <= 127); 16 | } 17 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_isdigit.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isdigit.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:31 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:10:18 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isdigit(int c) 14 | { 15 | return ('0' <= c && c <= '9'); 16 | } 17 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_isprint.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isprint.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:12:03 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isprint(int c) 14 | { 15 | return (' ' <= c && c <= '~'); 16 | } 17 | -------------------------------------------------------------------------------- /Fractol/lib/minilibx_macos/_README_: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 14/10/2015 4 | # ol@staff.42.fr 5 | # 6 | 7 | MinilibX 8 | 9 | Interface simplifiee de programmation graphique pour debutant 10 | # 11 | 12 | Cette minilibX est la version native pour MacOSX. 13 | [ Elle n'utilise plus les librairies graphiques X11, ni XQuartz le serveur X pour MacOSX. ] 14 | L'interface / l'API, reste identique a la version precedente. Les man presents dans la minilibX 15 | d'origine sont toujours valides. 16 | 17 | Le fichier mlx.h a inclure dans vos programmes rapelle les petites differences de comportement 18 | entre les 2 versions, dues a la gestion graphique differente selon les systemes d'exploitation. 19 | 20 | # 21 | 22 | Cette version utilise le systeme de fenetrage Cocoa de MacOSX ( AppKit ), et les primitives 23 | graphiques OpenGL moderne. 24 | 25 | # 26 | 27 | License: la MinilibX macos est fournie sous license BSD: Copyright Olivier Crouzet - 2014-2015 28 | la MinilibX est fournie sous license BSD: Copyright Olivier Crouzet - 1999-2015 29 | # 30 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/minilibx_macos/_README_: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 14/10/2015 4 | # ol@staff.42.fr 5 | # 6 | 7 | MinilibX 8 | 9 | Interface simplifiee de programmation graphique pour debutant 10 | # 11 | 12 | Cette minilibX est la version native pour MacOSX. 13 | [ Elle n'utilise plus les librairies graphiques X11, ni XQuartz le serveur X pour MacOSX. ] 14 | L'interface / l'API, reste identique a la version precedente. Les man presents dans la minilibX 15 | d'origine sont toujours valides. 16 | 17 | Le fichier mlx.h a inclure dans vos programmes rapelle les petites differences de comportement 18 | entre les 2 versions, dues a la gestion graphique differente selon les systemes d'exploitation. 19 | 20 | # 21 | 22 | Cette version utilise le systeme de fenetrage Cocoa de MacOSX ( AppKit ), et les primitives 23 | graphiques OpenGL moderne. 24 | 25 | # 26 | 27 | License: la MinilibX macos est fournie sous license BSD: Copyright Olivier Crouzet - 2014-2015 28 | la MinilibX est fournie sous license BSD: Copyright Olivier Crouzet - 1999-2015 29 | # 30 | -------------------------------------------------------------------------------- /Wolf3d/lib/minilibx_macos/_README_: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 14/10/2015 4 | # ol@staff.42.fr 5 | # 6 | 7 | MinilibX 8 | 9 | Interface simplifiee de programmation graphique pour debutant 10 | # 11 | 12 | Cette minilibX est la version native pour MacOSX. 13 | [ Elle n'utilise plus les librairies graphiques X11, ni XQuartz le serveur X pour MacOSX. ] 14 | L'interface / l'API, reste identique a la version precedente. Les man presents dans la minilibX 15 | d'origine sont toujours valides. 16 | 17 | Le fichier mlx.h a inclure dans vos programmes rapelle les petites differences de comportement 18 | entre les 2 versions, dues a la gestion graphique differente selon les systemes d'exploitation. 19 | 20 | # 21 | 22 | Cette version utilise le systeme de fenetrage Cocoa de MacOSX ( AppKit ), et les primitives 23 | graphiques OpenGL moderne. 24 | 25 | # 26 | 27 | License: la MinilibX macos est fournie sous license BSD: Copyright Olivier Crouzet - 2014-2015 28 | la MinilibX est fournie sous license BSD: Copyright Olivier Crouzet - 1999-2015 29 | # 30 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Libft/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Libft/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Libft/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_tolower.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_tolower.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:46:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 17:46:57 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_tolower(int c) 14 | { 15 | return ('A' <= c && c <= 'Z' ? c + 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_toupper.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_toupper.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:41:58 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_toupper(int c) 14 | { 15 | return ('a' <= c && c <= 'z' ? c - 32 : c); 16 | } 17 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_putchar.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:23 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/24 12:44:25 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar(char c) 16 | { 17 | write(1, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Libft/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /Ft_printf/src/print_char.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* print_char.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/19 17:58:00 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/23 09:54:34 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libftprintf.h" 14 | 15 | int print_char(char c) 16 | { 17 | write(1, &c, 1); 18 | return (1); 19 | } 20 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Libft/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Libft/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex11/ft_div_mod.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_div_mod.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/11/05 16:22:11 by wwatkins #+# #+# */ 9 | /* Updated: 2016/11/05 16:26:56 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | void ft_div_mod(int a, int b, int *div, int *mod) 14 | { 15 | *div = a / b; 16 | *mod = a % b; 17 | } 18 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_isalpha.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalpha.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:08 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/29 18:09:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalpha(int c) 14 | { 15 | return (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')); 16 | } 17 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_memdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_memdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:38:36 by wwatkins #+# #+# */ 9 | /* Updated: 2015/12/03 18:04:24 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_memdel(void **ap) 16 | { 17 | free(*ap); 18 | *ap = NULL; 19 | } 20 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_strclr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strclr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:43:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 15:58:12 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strclr(char *s) 16 | { 17 | while (*s) 18 | *s++ = '\0'; 19 | } 20 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex10/ft_swap.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_swap.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/11/05 16:15:56 by wwatkins #+# #+# */ 9 | /* Updated: 2016/11/05 16:21:45 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | void ft_swap(int *a, int *b) 14 | { 15 | int tmp; 16 | 17 | tmp = *a; 18 | *a = *b; 19 | *b = tmp; 20 | } 21 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_putchar_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putchar_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:38 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:40:39 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putchar_fd(char c, int fd) 16 | { 17 | write(fd, &c, 1); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_putstr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:45:05 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:28:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /Libft/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /Libvec/src/vec2_dot.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector3_op.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 10:57:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:01 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec2_dot(t_vec2 va, t_vec2 vb) 16 | { 17 | return ((va.x * vb.x + va.y * vb.y)); 18 | } 19 | -------------------------------------------------------------------------------- /Libvec/src/vec2_magnitude.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector2.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 14:23:31 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:16 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec2_magnitude(t_vec2 v) 16 | { 17 | return (sqrt(v.x * v.x + v.y * v.y)); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Malloc/libftprintf/src/print_char.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* print_char.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/19 17:58:00 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/23 09:54:34 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libftprintf.h" 14 | 15 | int print_char(char c) 16 | { 17 | write(1, &c, 1); 18 | return (1); 19 | } 20 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/03 12:40:27 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | int ft_isalnum(int c) 16 | { 17 | return (ft_isalpha(c) || ft_isdigit(c)); 18 | } 19 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /Libft/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_boolean.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_boolean.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: scollon +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/04/30 09:38:22 by scollon #+# #+# */ 9 | /* Updated: 2016/04/30 09:39:47 by scollon ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | char *ft_boolean(const int value) 16 | { 17 | return (value == 0 ? "false" : "true"); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /Fdf/lib/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /Libvec/src/vec3_magnitude.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector3.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 10:47:42 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:20:50 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec3_magnitude(t_vec3 v) 16 | { 17 | return (sqrt(v.x * v.x + v.y * v.y + v.z * v.z)); 18 | } 19 | -------------------------------------------------------------------------------- /Libvec/src/vec3_up.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:44 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_up(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 0, 1, 0 }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex22/ft_abs.h: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_abs.h :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/11/23 16:56:16 by wwatkins #+# #+# */ 9 | /* Updated: 2016/11/23 16:56:48 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #ifndef FT_ABS_H 14 | # define FT_ABS_H 15 | 16 | # define ABS(value) ((value) > (0) ? (value) : -(value)) 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_strdel.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_strdel.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 15:48:11 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/26 09:49:42 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_strdel(char **as) 16 | { 17 | if (as != NULL) 18 | ft_memdel((void**)as); 19 | } 20 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec2_dot.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector3_op.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 10:57:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:01 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec2_dot(t_vec2 va, t_vec2 vb) 16 | { 17 | return ((va.x * vb.x + va.y * vb.y)); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec2_magnitude.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector2.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 14:23:31 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:16 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec2_magnitude(t_vec2 v) 16 | { 17 | return (sqrt(v.x * v.x + v.y * v.y)); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_putstr_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putstr_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:41:06 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:30:52 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putstr_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | } 19 | -------------------------------------------------------------------------------- /nm-otool/libs/libftprintf/src/print_char.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* print_char.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/19 17:58:00 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/23 09:54:34 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libftprintf.h" 14 | 15 | int print_char(char c) 16 | { 17 | write(1, &c, 1); 18 | return (1); 19 | } 20 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /Libft/ft_clamp.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_clamp.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/16 09:27:33 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/16 09:28:56 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | void ft_clamp(double *value, double min, double max) 14 | { 15 | *value < min ? *value = min : 0; 16 | *value > max ? *value = max : 0; 17 | } 18 | -------------------------------------------------------------------------------- /Libvec/src/vec2.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector2.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 14:23:31 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:33:31 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec2 vec2(double x, double y) 16 | { 17 | t_vec2 v; 18 | 19 | v = (t_vec2) { x, y }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /Libvec/src/vec3_dot.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector3_op.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 10:57:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:37:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec3_dot(t_vec3 va, t_vec3 vb) 16 | { 17 | return ((va.x * vb.x + va.y * vb.y + va.z * vb.z)); 18 | } 19 | -------------------------------------------------------------------------------- /Libvec/src/vec3_right.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_right(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 1, 0, 0 }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /Libvec/src/vec3_zero.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:33 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_zero(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 0, 0, 0 }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /Malloc/libft/src/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /Piscine_reloaded/ex08/ft_is_negative.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_is_negative.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/11/05 16:06:29 by wwatkins #+# #+# */ 9 | /* Updated: 2016/11/29 15:42:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | void ft_putchar(char c); 14 | 15 | void ft_is_negative(int n) 16 | { 17 | n < 0 ? ft_putchar('N') : ft_putchar('P'); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /RTv1/lib/libft/src/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_boolean.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_boolean.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: scollon +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/04/30 09:38:22 by scollon #+# #+# */ 9 | /* Updated: 2016/04/30 09:39:47 by scollon ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | char *ft_boolean(const int value) 16 | { 17 | return (value == 0 ? "false" : "true"); 18 | } 19 | -------------------------------------------------------------------------------- /Fractol/lib/libft/src/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /Fractol/readme.md: -------------------------------------------------------------------------------- 1 | # Fract'ol 2 | 3 | _This project consist of creating a small fractal exploration program._ 4 | 5 | __Installation:__ 6 | 7 | * `git clone https://github.com/wwatkins42/42Projects.git` 8 | * `cd ./Fractol` 9 | * `make` 10 | * `./fractol [type]` 11 | 12 | **Usage:** 13 | * `./fractol [type] [-w width] [-h height] [--help]` 14 | * type: 15 | * `julia` 16 | * `mandelbrot` 17 | * `burningship` 18 | * `tricorn` 19 | 20 | **Options:** 21 | * `-w` [`window_width`] loads with defined window width. 22 | * `-h` [`window_height`] loads with defined window height. 23 | * `--help` display help text. 24 | 25 | **Example:** 26 | * `./fractol burningship -w 640 -h 640` 27 | 28 | **Keys:** 29 | * `+` `-` or `mouse wheel`: zoom on mouse position 30 | * `mouse`: change julia settings 31 | * `o`: switch background color 32 | * `p`: change color palette 33 | * ⇞ ⇟: change number of iteration 34 | 35 | ![fractol_screenshot_1](/screenshots/screenshot_fractol_1.png?raw=true "fractol") 36 | ![fractol_screenshot_2](/screenshots/screenshot_fractol_2.png?raw=true "fractol") 37 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /Libft/ft_putendl_fd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl_fd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:44:54 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:32:08 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl_fd(char const *s, int fd) 16 | { 17 | write(fd, s, ft_strlen(s)); 18 | write(fd, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /Libvec/src/vec3_forward.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:36:14 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_forward(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 0, 0, 1 }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_lstadd.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_lstadd.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/27 17:40:56 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/28 09:23:55 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_lstadd(t_list **alst, t_list *new) 16 | { 17 | new->next = *alst; 18 | *alst = new; 19 | } 20 | -------------------------------------------------------------------------------- /Push_swap/lib/libft/src/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec3_magnitude.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector3.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 10:47:42 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:20:50 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec3_magnitude(t_vec3 v) 16 | { 17 | return (sqrt(v.x * v.x + v.y * v.y + v.z * v.z)); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec3_up.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:44 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_up(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 0, 1, 0 }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /Wolf3d/lib/libft/src/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /nm-otool/libs/libft/src/ft_putendl.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_putendl.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:42:38 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:31:35 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_putendl(char const *s) 16 | { 17 | write(1, s, ft_strlen(s)); 18 | write(1, "\n", 1); 19 | } 20 | -------------------------------------------------------------------------------- /Ft_printf/src/print_arg_ptr.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* print_arg_ptr.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/19 17:53:35 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/19 17:53:43 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libftprintf.h" 14 | 15 | void print_arg_ptr(t_e *e, t_a *arg, int *i) 16 | { 17 | *i = print_mem(va_arg(e->ap, void *), arg); 18 | } 19 | -------------------------------------------------------------------------------- /Get_next_line/libft/src/ft_isalnum.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_isalnum.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/24 12:40:20 by wwatkins #+# #+# */ 9 | /* Updated: 2015/11/30 12:59:32 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | int ft_isalnum(int c) 14 | { 15 | return (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || 16 | ('0' <= c && c <= '9')); 17 | } 18 | -------------------------------------------------------------------------------- /Libft/ft_bzero.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* ft_bzero.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2015/11/25 09:33:07 by wwatkins #+# #+# */ 9 | /* Updated: 2016/01/29 14:37:15 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libft.h" 14 | 15 | void ft_bzero(void *s, size_t n) 16 | { 17 | char *st; 18 | 19 | st = (char*)s; 20 | while (n--) 21 | *st++ = '\0'; 22 | } 23 | -------------------------------------------------------------------------------- /Libvec/src/vec2i.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector2.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 14:23:31 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:33:45 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec2i vec2i(t_vec2 v) 16 | { 17 | t_vec2i vi; 18 | 19 | vi = (t_vec2i) { (int)v.x, (int)v.y }; 20 | return (vi); 21 | } 22 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec2.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector2.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 14:23:31 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:33:31 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec2 vec2(double x, double y) 16 | { 17 | t_vec2 v; 18 | 19 | v = (t_vec2) { x, y }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec3_dot.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vector3_op.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/01/27 10:57:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:37:54 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | double vec3_dot(t_vec3 va, t_vec3 vb) 16 | { 17 | return ((va.x * vb.x + va.y * vb.y + va.z * vb.z)); 18 | } 19 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec3_right.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:59 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_right(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 1, 0, 0 }; 20 | return (v); 21 | } 22 | -------------------------------------------------------------------------------- /RTv1/lib/libvec/src/vec3_zero.c: -------------------------------------------------------------------------------- 1 | /* ************************************************************************** */ 2 | /* */ 3 | /* ::: :::::::: */ 4 | /* vec.c :+: :+: :+: */ 5 | /* +:+ +:+ +:+ */ 6 | /* By: wwatkins +#+ +:+ +#+ */ 7 | /* +#+#+#+#+#+ +#+ */ 8 | /* Created: 2016/02/08 13:11:57 by wwatkins #+# #+# */ 9 | /* Updated: 2016/02/15 15:35:33 by wwatkins ### ########.fr */ 10 | /* */ 11 | /* ************************************************************************** */ 12 | 13 | #include "libvec.h" 14 | 15 | t_vec3 vec3_zero(void) 16 | { 17 | t_vec3 v; 18 | 19 | v = (t_vec3) { 0, 0, 0 }; 20 | return (v); 21 | } 22 | --------------------------------------------------------------------------------