31.03.2012, 15:40
pawn Код:
stock dini_PRIVATE_ExtractKey(line[]) {
new tmp[MAX_STRING];
tmp[0]=0;
if (strfind(line,"=",true)==-1) return tmp;
set(tmp,strlower(ret_memcpy(line,0,strfind(line,"=",true))));
return tmp;
}
stock dini_PRIVATE_ExtractValue(line[]) {
new tmp[MAX_STRING];
tmp[0]=0;
if (strfind(line,"=",true)==-1) {
return tmp;
}
set(tmp,ret_memcpy(line,strfind(line,"=",true)+1,strlen(line)));
return tmp;
}
