strcpy and its tests :)))

This commit is contained in:
LinlyBoi
2023-08-21 11:23:56 +03:00
parent 64d38b771d
commit 5df61fff5b
3 changed files with 46 additions and 0 deletions

17
tests/strcpy.c Normal file
View File

@@ -0,0 +1,17 @@
#include "../main.h"
#include <stdlib.h>
#include <stdio.h>
/**
* main - why does this not work! I know!
* Return: 0...unless?
*/
int main(void)
{
char *str, *str2;
str = "hello";
str2 = " world!\n";
str = _strcpy(str, str2);
printf("%s", str);
return (0);
}