Move bufsize macro to main;

This commit is contained in:
Timo Schmidt 2023-03-24 01:05:26 +01:00
parent daeee8b218
commit 2111fa0022
1 changed files with 3 additions and 3 deletions

View File

@ -6,12 +6,10 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */ /* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/19 10:25:26 by tischmid #+# #+# */ /* Created: 2023/03/19 10:25:26 by tischmid #+# #+# */
/* Updated: 2023/03/24 00:36:14 by tischmid ### ########.fr */ /* Updated: 2023/03/24 01:05:10 by tischmid ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#define BUFSIZE 10
char *ft_strncpy(char *dest, char *src, unsigned int n) char *ft_strncpy(char *dest, char *src, unsigned int n)
{ {
++n; ++n;
@ -24,6 +22,8 @@ char *ft_strncpy(char *dest, char *src, unsigned int n)
/* //// /* ////
#include <stdio.h> #include <stdio.h>
#define BUFSIZE 10
int main(void) int main(void)
{ {