03.10.2011, 19:24
hello, yesterday i found 2 functions about dini and i didn't realy understand what they're doing.
can you please explain it to me?
Code:
can you please explain it to me?
Code:
pawn Код:
stock dini_PRIVATE_ExtractKey(line[]){
new tmp[255]; 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[255];
tmp[0]=0;
if(strfind(line,"=",true)==-1){
return tmp;}
set(tmp,ret_memcpy(line,strfind(line,"=",true)+1,strlen(line)));
return tmp;}