Question about sscanf
#1

Hello. I have this code:
Код:
sscanf(params, "p<.>iiii", params[0], params[1], params[2], params[3])
How to set the maximum length of integer? For example, 3, so that 111.111.111.111 is allowed, and 111111.11111.11.111 - no?
Reply
#2

if(params[0] > 111 && params[0] < 1) return script;
you can do this to all of these params (params[0],params[1],params[2],params[3])
Reply
#3

Exactly, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)