Compare commits
No commits in common. "cde037271602b63fe8cd483adc178ebb98643826" and "e5b5214412dc103f2be189883fb5337fdb55bcda" have entirely different histories.
cde0372716
...
e5b5214412
@ -1,27 +0,0 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_open.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: asargsya <asargsya@student.42yerevan.am> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/03 19:08:11 by asargsya #+# #+# */
|
||||
/* Updated: 2023/12/03 20:17:25 by achubuko ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "ft_open.h"
|
||||
|
||||
void ft_dict_open(char *path)
|
||||
{
|
||||
int fd;
|
||||
char buf[1024];
|
||||
int buflen;
|
||||
|
||||
fd = open(path, O_RDONLY);
|
||||
buflen = read(fd, buf, 1024);
|
||||
while (buflen > 0)
|
||||
{
|
||||
write(1, buf, buflen);
|
||||
}
|
||||
close(fd);
|
||||
}
|
Reference in New Issue
Block a user