mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 06:58:47 +02:00
「🏗️」 wip: Testing pipe check
This commit is contained in:
25
src/parsing/check_error/check_wspace.c
Normal file
25
src/parsing/check_error/check_wspace.c
Normal file
@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* check_wspace.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/29 19:18:19 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/29 19:31:02 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "parsing.h"
|
||||
#include "error_msg.h"
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
bool check_wspace(char *readline)
|
||||
{
|
||||
while (*readline && ft_isspace(*readline))
|
||||
readline++;
|
||||
if (!*readline)
|
||||
return (send_error_parsing("Only white space in line"));
|
||||
return (false);
|
||||
}
|
Reference in New Issue
Block a user