[Question]Dudb and ret_memcpy
#2

pawn Код:
ret_memcpy(source[],index=0,numbytes) {
    new tmp[MAX_STRING];
    new i=0;
    tmp[0]=0;
    if (index>=strlen(source)) return tmp;
    if (numbytes+index>=strlen(source)) numbytes=strlen(source)-index;
    if (numbytes<=0) return tmp;
    for (i=index;i<numbytes+index;i++) {
        tmp[i-index]=source[i];
        if (source[i]==0) return tmp;
    }
    tmp[numbytes]=0;
    return tmp;
}
It's a function in the dutils library but this func' is called 3 time in this library so why the pawn compiler say "unused" ?
Reply


Messages In This Thread
[Question]Dudb and ret_memcpy - by jujuv - 18.04.2012, 11:44
Re : [Question]Dudb and ret_memcpy - by jujuv - 18.04.2012, 11:48
Re: [Question]Dudb and ret_memcpy - by InfinityGamerX - 18.04.2012, 11:50
Re : [Question]Dudb and ret_memcpy - by jujuv - 18.04.2012, 11:58
Re: [Question]Dudb and ret_memcpy - by InfinityGamerX - 18.04.2012, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)