mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* is_str.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/05/03 10:23:40 by adjoly #+# #+# */
|
|
/* Updated: 2024/05/03 10:23:55 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdbool.h>
|
|
|
|
bool is_str(char *src, char *dst)
|
|
{
|
|
while (*src && *dst && *src == *dst)
|
|
{
|
|
src++;
|
|
dst++;
|
|
}
|
|
if (*dst)
|
|
return (false);
|
|
return (true);
|
|
}
|