UUDECODE
#1

I'm trying to use uuencode and uudecode to just make a simple encoding system for saving strings, for uuencode it needs the number of bytes, how can i detect the length of the number. for example if it is a six digit number like 123456 the function will scan and return 6? for some reason doing if( var >= 0 & var<= 9) seems like it'd be old fashioned.
Reply
#2

You could put it into a string and then use strlen.

pawn Код:
stock vallen(value)
{
    new str[25];
    format(str, sizeof(str), "%d", value);
    return strlen(str);
}
Reply
#3

thanks bro, ill try that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)