1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/pudron-PData

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
pdata.h 679
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Pudron Отправлено 29.12.2019 08:26 c3ab255
#ifndef _PDATA_H_
#define _PDATA_H_
typedef struct PDataDef{
char*name;
int count;//the count of dat.
struct PDataDef*dat;
char*text;
}PData;
/*pderror:return the error message*/
char*pderror();
/*getPData:read the PData file and assign it to the pdata.
if successful,it returns 1,if not,it returns 0*/
int getPData(char*file,PData*pdata);
/*putPData:output the pdata to the file.
if successful,it returns 1,if not,it returns 0*/
int putPData(char*file,PData pdata);
/*addPData:add the child to pdata.dat*/
void addPData(PData*pdata,PData child);
/*get the index of dat with the name.
If no found,it will return -1*/
int searchPData(PData pdata,char*name);
#endif

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/pudron-PData.git
git@api.gitlife.ru:oschina-mirror/pudron-PData.git
oschina-mirror
pudron-PData
pudron-PData
master