we got this
This commit is contained in:
3
strs2.c
3
strs2.c
@@ -7,14 +7,13 @@
|
|||||||
int _strlen(char *s)
|
int _strlen(char *s)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
for (c = 0; s[c] != 0; c++)
|
for (c = 0; s[c] != 0; c++)
|
||||||
;
|
;
|
||||||
return (c);
|
return (c);
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* _strlenc - Strlen function but applied for constant char pointer s
|
* _strlenc - Strlen function on char pointer s
|
||||||
* @s: Type char pointer
|
* @s: Type char pointer
|
||||||
* Return: c
|
* Return: c
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user