betty styling here

This commit is contained in:
LinlyBoi
2023-08-22 14:00:36 +03:00
parent f08b2ca361
commit 2ca25a30a0

View File

@@ -46,7 +46,7 @@ int _contains(const char *str, char c)
* Return: da string but appended
*/
char* append(char *str, char c)
char *append(char *str, char c)
{
int len, i;
char *new_me;
@@ -55,7 +55,7 @@ char* append(char *str, char c)
new_me = malloc(len + 1);
i = -1;
while(*(str + ++i))
while (*(str + ++i))
*(new_me + i) = *(str + i);
*(new_me + i++) = c;