Skip to content

Instantly share code, notes, and snippets.

@anuradhawick
Created November 13, 2014 12:47
Show Gist options
  • Save anuradhawick/6dd247ab3309267f3764 to your computer and use it in GitHub Desktop.
Save anuradhawick/6dd247ab3309267f3764 to your computer and use it in GitHub Desktop.
Char array lengthcounter
int length(char * array){
int len=0,i=0;
while(1){
if(array[i]=='\0') return len;
len++;
i++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment