mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
26 lines
1.1 KiB
C
26 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* 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);
|
|
}
|