func: static void goodG2B() int count ; map < int , int > countMap ; count = - 1; count = 20; countMap [ 0 ] = count; countMap [ 1 ] = count; countMap [ 2 ] = count; goodG2BSink ( countMap ); void goodG2BSink(map<int, int> countMap) int count = countMap [ 2 ] ; const char * filename = "output_bad.txt" ; pFile = fopen ( filename , "w+" ); for (i = 0; i < (size_t)count; i++) if ( strlen ( SENTENCE ) != fwrite ( SENTENCE , sizeof ( char ) , strlen ( SENTENCE ) , pFile ) )  