Last active
January 17, 2023 12:26
-
-
Save Titory0/bba64b4a6790ac7b47516a2caff8940d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int ft_strlen(string word) | |
{ | |
int len=0; | |
char a='a'; | |
while(true) | |
{ | |
try | |
{ | |
a=word[len]; | |
} | |
catch | |
{ | |
return len; | |
} | |
len=len+1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment