Topic : Small printf (scanf)

Forum : Ride IDE

Original Post
Post Information Post
November 8, 2010 - 2:22pm
Guest

Hi,

I'm not ablt to use correctly "small printf" library. Following code doesn't work and i donct know why.

{
/* Init scanf pointer */
bCptScanf = 0;
pScanfBuffer = (char *)&sUSB.bBufferRx[0];

/* Retrieve Parameters */
sscanf((char *)&sUSB.bBufferRx[0], "%02d/%02d/%04d %02d:%02d:%02d",
&iDay, &iMonth, &iYear, &iHours, &iMinutes, &iSeconds);

}

int __io_getchar(void)
{
int tempch;

tempch = (int) *(pScanfBuffer+bCptScanf);
bCptScanf++;

return (int)(tempch);
}

I receive only a part of the string.

Could you help me ???

Thank you nin advance !

Julien.

Replies
Post Information Post
+1
0
-1
November 15, 2010 - 5:15pm
Guest

Hi,

Do you need more information to reply to my post ?

Thank you,

Julien.

+1
0
-1
November 16, 2010 - 2:36pm
Raisonance Support Team

Julien,

Could you send a zipped file containing the whole project to , so that we can reproduce it in our Labs?

Thanks by advance,