refactored append and char test

This commit is contained in:
LinlyBoi
2023-08-21 14:28:36 +03:00
parent f316833e4c
commit 7fda3ce821
5 changed files with 35 additions and 7 deletions

17
tests/append.c Normal file
View File

@@ -0,0 +1,17 @@
#include "../main.h"
#include <stdio.h>
/**
*main - ensure append work
*/
int main(void)
{
char *str, c;
str = "hello";
c = 'c';
str = append(str, c);
_printf("%s\n", str);
return (0);
}