func: int main(int argc, char *argv[]) buf = new char [ 25 ]; if ( buf != 0 )  char * t = rand_text ( ) ; char *rand_text() unsigned length = rand ( ) % 50 - 1 ; char * t = new char [ length ] ; if ( ! t )  return 0 ; unsigned i = 0 ; for (;i<45;++i) t [ i ] = ( char ) ( ( rand ( ) % 26 ) + 'a' ); t [ i + 1 ] = '\0'; return t ; if ( t )  buf [ strlen ( t ) ] = t [ strlen ( t ) - 1 ]; delete [ ] buf 