#1

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:
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;}
Reply


Messages In This Thread
Dini - by omer5198 - 03.10.2011, 19:24
Re: Dini - by PowerPC603 - 03.10.2011, 19:30
Re: Dini - by omer5198 - 03.10.2011, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)