PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
3 sec ago
Untitled
6 sec ago
Untitled
10 sec ago
ser_1369239009482
10 sec ago
Spigot crash 22/05
19 sec ago
Untitled
15 sec ago
BabeFox NataliaForrest
16 sec ago
Untitled
16 sec ago
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)
unsigned
int
char_count
(
const
char
*
texto
,
const
char
letra
)
{
unsigned
int
count
=
0U
;
while
(
*
texto
)
if
(
*
texto
++
==
letra
)
count
++;
return
count
;
}
create a
new version
of this paste
RAW Paste Data
unsigned int char_count(const char *texto, const char letra) { unsigned int count = 0U; while (*texto) if (*texto++ == letra) count++; return count; }