Redlib issues

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Redlib issues

988件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micronpn on Wed Jul 09 03:23:48 MST 2014
1. Seems that some C stdlib functions are declared in the include files but are not present i nthe library.

For instance strtold() is declared but undefined:

long double strtold(const char * restrict nptr, char ** restrict endptr);

There are similar issues also for stdio functions as:

int vsscanf(const char *buffer, const char *format, va_list ap)

is there a list of unimplemented standardlib functions and/or data type management?

2. Is there a description of format flags supported by printf() and scanf() family of functions?
0 件の賞賛
返信
2 返答(返信)

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micronpn on Wed Jul 09 04:40:46 MST 2014
I added my vsscanf() externally to Redlib and now I am interested to add the 64bit integer and float functions. I already added strtold() and now I am investigating what functions are missed in Redlib. If you are interested to add 64bit data type support I could send you my source code to add on the next release.
0 件の賞賛
返信

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jul 09 04:04:12 MST 2014
Redlib is a C90 library with some limited functions added from C99, as per ... http://www.lpcware.com/content/faq/lpcxpresso/redlib-and-newlib

You have already reported the vsscanf() issue … http://www.lpcware.com/content/forum/vsscanf-redlib … and this function declaration has been removed from the header for the next LPCXpresso release.

strtold() appears to be another case of the headers getting ahead of the library implementation, and I'll log this for investigation (probably at this stage it will just be removed from the header). I will also try to ensure that we do another check of the headers vs the library implementation in the near future to make sure that there aren't any more of these disconnects. I'll also look into producing some more public documentation on what functions we do and don't support.

With regards to printf() and scanf(), these implement the C90 format flags, with printf() at least supporting most additional ones from C99 too.  I'll look at getting the actual details added as an FAQ in the near future. Note that building your application with CR_INTEGER_PRINTF define will remove the floating point flags support from printf().

FInally, I should say that we have the general intention of adding additional C99 functions to Redlib going forward, but I can't say which functions will appear and when. In the meantime,  if you require full C99 library functionality you might also want to take a look at Newlib / Newlib-Nano.

Regards,
LPCXpresso Support




0 件の賞賛
返信