diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-21 19:47:21 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-21 19:47:21 +0100 |
commit | da01f1737b2f6c748a8b667ccd2e3d0e314724ba (patch) | |
tree | 093df361f545b80c2563f3a53190f8950bc33381 /src | |
parent | Makefile rupdate (diff) | |
download | 42-cub3d-da01f1737b2f6c748a8b667ccd2e3d0e314724ba.tar.gz 42-cub3d-da01f1737b2f6c748a8b667ccd2e3d0e314724ba.tar.bz2 42-cub3d-da01f1737b2f6c748a8b667ccd2e3d0e314724ba.tar.xz 42-cub3d-da01f1737b2f6c748a8b667ccd2e3d0e314724ba.tar.zst 42-cub3d-da01f1737b2f6c748a8b667ccd2e3d0e314724ba.zip |
on est la
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -15,30 +15,17 @@ #include <cub3d.h> #include <stddef.h> #include <unistd.h> -#include <pthread.h> -#include <stdlib.h> - -void - *ft_zik(void *vargp) -{ - (void)vargp; - system("afplay revelations.mp3"); - return NULL; -} int main(int argc, const char *argv[]) { t_cub *clist; - pthread_t thread_id; if (argc < 2) { ft_dprintf(STDERR_FILENO, "Error\n\033[1;31mNo map selected\n\033[0m"); return (1); } - pthread_create(&thread_id, NULL, ft_zik, NULL); - pthread_join(thread_id, NULL); if (ft_init_cub3d(&clist) < 0) return (2); ft_parse_map(argv[1], clist); |