Skip to content

Commit

Permalink
Cuss betty out
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrimeJnr committed Jun 7, 2023
1 parent dddc5ae commit e1457f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
16 changes: 0 additions & 16 deletions 0x08-recursion/2-main.c

This file was deleted.

6 changes: 4 additions & 2 deletions 0x08-recursion/2-strlen_recursion.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
/**
* _strlen_recursion - prints the length of a string recursively
* @s: The string whose length would be printed
*
* Return: The length of string, Always success
*/

int _strlen_recursion (char *s)
int _strlen_recursion(char *s)
{
if (*s == '\0')
{
return (0);
}

return( 1 + _strlen_recursion(s +1));
return (1 + _strlen_recursion(s + 1));
}

0 comments on commit e1457f2

Please sign in to comment.