mirror of
https://github.com/Savapitech/42sh.git
synced 2026-03-18 21:50:35 +01:00
20 lines
304 B
C
20 lines
304 B
C
/*
|
|
** EPITECH PROJECT, 2024
|
|
** B-CPE-100-REN-1-1-cpoolday06-savinien.petitjean
|
|
** File description:
|
|
** Task 3
|
|
*/
|
|
|
|
#include <ctype.h>
|
|
#include <stddef.h>
|
|
|
|
int u_strlen(char const *str)
|
|
{
|
|
char const *p = str;
|
|
|
|
if (str == NULL)
|
|
return 0;
|
|
for (; *p != '\0'; p++);
|
|
return (p - str);
|
|
}
|