scanf - How to read integers with sscanf separated by symbols in C? -


so have string following value

[7, 8]

now wan't store each value (only numbers) in 2d array [1][2].
i'm pretty sure using sscanf best way this, how tell sccanf read integers?

thanks in advance

sscanf("[%d,%d]", array[a][b], array[c][d]); 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -