Skip to content

Instantly share code, notes, and snippets.

@obstschale
Last active December 15, 2015 07:49
Show Gist options
  • Save obstschale/5226659 to your computer and use it in GitHub Desktop.
Save obstschale/5226659 to your computer and use it in GitHub Desktop.
count character in string
int countchar (char list[])
{
int i, count = 0;
for (i = 0; list[i] != '\0'; i++)
count++;
return (count);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment