Skip to content

Instantly share code, notes, and snippets.

@anak10thn
Last active December 9, 2015 20:48
Show Gist options
  • Save anak10thn/4325729 to your computer and use it in GitHub Desktop.
Save anak10thn/4325729 to your computer and use it in GitHub Desktop.
strlen() C
#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