ft_strlen | ex01
Christopher Phillips
An easy function in the 42 exam 01 library, ft_strlen is probably one of the most used functions you'll have in your arsenal. You could also use pointer notation but be careful! You'll lose the address to the beginning of the string! It's ok if you don't plan on using it for anything other than to count the length:
int ft_strlen(char *str) { int i; i = 0; while (*str++) i++; return (i); } ... https://www.youtube.com/watch?v=sXywczJGp6o
2022-04-11
0.0 LBC
Copyrighted (contact publisher)
13550324 Bytes