diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:33:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:33:11 +0100 |
commit | fc61b9019c867c88868da308fd2d0bfce7408c7f (patch) | |
tree | 31ca264c2f2cc61613d38a0ffa91e1894e691f53 /src/ft_select_get.c | |
parent | Another song (diff) | |
download | 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.gz 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.bz2 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.xz 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.zst 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.zip |
in progress
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r-- | src/ft_select_get.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index 9d97748..ed569ff 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -62,18 +62,18 @@ static int8_t int8_t ret; char ref[12][3]; - ft_memcpy(ref[0], "R\0", 3); - ft_memcpy(ref[1], "NO", 3); - ft_memcpy(ref[2], "SO", 3); - ft_memcpy(ref[3], "EA", 3); - ft_memcpy(ref[4], "WE", 3); - ft_memcpy(ref[5], "S\0", 3); - ft_memcpy(ref[6], "F\0", 3); - ft_memcpy(ref[7], "C\0", 3); - ft_memcpy(ref[8], "L\0", 3); - ft_memcpy(ref[9], "LT", 3); - ft_memcpy(ref[9], "MU", 3); - ft_memcpy(ref[11], "", 1); + ft_sprintf(ref[0], "R"); + ft_sprintf(ref[1], "NO"); + ft_sprintf(ref[2], "SO"); + ft_sprintf(ref[3], "EA"); + ft_sprintf(ref[4], "WE"); + ft_sprintf(ref[5], "S"); + ft_sprintf(ref[6], "F"); + ft_sprintf(ref[7], "C"); + ft_sprintf(ref[8], "L"); + ft_sprintf(ref[9], "LT"); + ft_sprintf(ref[10], "MU"); + ft_sprintf(ref[11], ""); ret = 0; while (ft_strncmp(words[0], ref[ret], 3) && ref[ret][0]) ret++; @@ -94,7 +94,7 @@ int8_t ft_free_words(words); return (12); } - if (id < 0 || (*fun_ptr[id])(words, clist) < 0) + if (id < 0 || clist->get_ptr[id](words, clist) < 0) { ft_free_words(words); return ((id < 0) ? (-2) : (-1)); |