int ReadFontSection() { PFL_HEADER pfl_header = &_fl_header; ReleaseSection(); pfl_header->pSection = (FL_SECTION_INF *)malloc(pfl_header->nSection*sizeof(FL_SECTION_INF)); if(pfl_header->pSection == NULL) { printf("Malloc fail!\n"); return 0; } fread(pfl_header->pSection, pfl_header->nSection*sizeof(FL_SECTION_INF), 1, g_prf); return 1; }
void TUserIniFile::DeleteSection(int AIndex) { ReleaseSection(AIndex); Sections->Delete(AIndex); }
void TUserIniFile::Clear() { for(int i=0; i < SectionCount(); i++) ReleaseSection(i); Sections->Clear(); }