-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_bzero.c
More file actions
46 lines (41 loc) · 1.42 KB
/
ft_bzero.c
File metadata and controls
46 lines (41 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edegraev <edegraev@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/20 07:37:23 by edegraev #+# #+# */
/* Updated: 2023/11/08 14:57:00 by edegraev ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *s, size_t n)
{
ft_memset(s, 0, n);
}
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// int main()
// {
// size_t i;
// size_t size;
// char *my_array;
// size = 10;
// my_array = (char *)malloc(size * sizeof(char));
// if (my_array == NULL)
// {
// perror("Erreur allocation memoire");
// return 1;
// }
// ft_bzero(my_array, size);
// i = 0;
// while (i < size)
// {
// printf("%c ", my_array[i]);
// i++;
// }
// free(my_array);
// return 0;
// }