chore: use correct size_t instead of t_size
This commit is contained in:
parent
aad909fe23
commit
b81ad331b5
10 changed files with 40 additions and 40 deletions
|
|
@ -6,15 +6,15 @@
|
|||
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/16 13:23:17 by kcolin #+# #+# */
|
||||
/* Updated: 2024/10/16 13:44:38 by kcolin ### ########.fr */
|
||||
/* Updated: 2024/10/16 15:19:29 by kcolin ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_strncmp(const char *s1, const char *s2, t_size n)
|
||||
int ft_strncmp(const char *s1, const char *s2, size_t n)
|
||||
{
|
||||
t_size i;
|
||||
size_t i;
|
||||
|
||||
i = 0;
|
||||
while (s1[i] != '\0' && s2[i] != 0)
|
||||
|
|
@ -34,7 +34,7 @@ int ft_strncmp(const char *s1, const char *s2, t_size n)
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
t_size cmp_len;
|
||||
size_t cmp_len;
|
||||
|
||||
cmp_len = 9;
|
||||
if (argc > 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue