sscanf question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sscanf question

12 Views
asier
Contributor III

Hi,

I'm working with LPC804 and MCUXpresso IDE.

I'm trying to do work sscanf but no way.

My example is the following:

char buff[] = "12";
int i;
sscanf(buff,"%d",&i);

if (i == 12){
GPIO_PinWrite(BOARD_INITPINS_BLOQ_GPIO,BOARD_INITPINS_BLOQ_PORT,BOARD_INITPINS_BLOQ_PIN, 1);
}

Any idea what is wrong? 

Thanks,

Asier.

0 Kudos
Reply
0 Replies