sscanf help with optional params
#1

Hello,

For exemple i have string like this:
1,2,3,4,5

I want to create an array of numbers(ids), I tying to use sscanf like this:
Код:
sscanf(ids, "p<,>A<i>(-1)[5]", sendids);
I typing 1,2 and the result of array is: 0 0 0 0 0.

How i can fix this?

Update:
Fixed, I'm idiot i forget to change this:
Код:
#include <sscanf>
to this:
Код:
#include <sscanf2>
You can lock this topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)