23 lines
1.1 KiB
C
23 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* rush-02.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/12/02 21:01:21 by achubuko #+# #+# */
|
|
/* Updated: 2023/12/02 23:45:57 by achubuko ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include "main.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (argc <= 1 || argc > 3)
|
|
{
|
|
write(1, "Error: program requires 1 or 2 arguments passed!", 48);
|
|
return (1);
|
|
}
|
|
write(1, argv[1], ft_strlen(argv[1]));
|
|
}
|