All pastes #767330 Raw Edit

Something

public cpp v1 · immutable
·published 2007-11-09 17:49 UTC
rendered paste body
char *word = "hello freddy";char search = 'e';int iCount = 0;for( char *p = word; *p; p++ ){    if( *p == search ) { iCount++; }}printf( "Found %c %i times in %s.", search, iCount, word );