-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_for_slash.c
More file actions
24 lines (22 loc) · 1.01 KB
/
check_for_slash.c
File metadata and controls
24 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_for_slash.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamoussa <mamoussa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/03 12:16:39 by mamoussa #+# #+# */
/* Updated: 2020/12/09 20:55:22 by mamoussa ### ########.fr */
/* */
/* ************************************************************************** */
#include "shell.h"
char *check_for_slash(char *str)
{
while (*str)
{
if (*str == '/')
return (str);
str++;
}
return (NULL);
}