Last active
December 9, 2015 20:48
-
-
Save anak10thn/4325729 to your computer and use it in GitHub Desktop.
strlen() C
This file contains hidden or 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
#include <stdio.h> | |
/* Ibnu yahya */ | |
int strlen(char x[]){ | |
int lenght = (sizeof(x) / sizeof(x[0]))-1; | |
printf("%d",lenght); | |
return lenght; | |
} | |
int main(){ | |
printf("%d",strlen("ibnu yah yah")); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment