char* heapstr(const char* str, int len); int countplaces(int n);