Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: C  |  size: 0.16 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. unsigned int char_count(const char *texto, const char letra) {
  2.         unsigned int count = 0U;
  3.         while (*texto)
  4.                 if (*texto++ == letra)
  5.                         count++;
  6.         return count;
  7. }