Cub3D
Loading...
Searching...
No Matches
find_next_word.c
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* find_next_word.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/12/17 22:17:52 by kamitsui #+# #+# */
9
/* Updated: 2024/12/17 22:18:04 by kamitsui ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "cub3d.h"
14
15
const
char
*find_next_word(
const
char
*s)
16
{
17
if
(s == NULL || *s ==
'\0'
|| *s ==
'\n'
)
18
return
(NULL);
19
while
(*s !=
' '
)
20
{
21
s++;
22
if
(*s ==
'\0'
|| *s ==
'\n'
)
23
return
(NULL);
24
}
25
while
(*s ==
' '
)
26
{
27
s++;
28
if
(*s ==
'\0'
|| *s ==
'\n'
)
29
return
(NULL);
30
}
31
return
(s);
32
}
srcs
init_utils
parse_cubfile
parse_cubfile_utils
find_next_word.c
Generated by
1.9.8