Content originally posted in LPCWare by micronpn on Wed Jul 09 10:33:13 MST 2014
Because function I need are declared in stdlib.h I decided to test all functions declared in it.
These are my results:
1. abort(): is not C standard lib compliant because it calls function(s) defined to be execute before exit using atexit(). The standard says that he abort function causes abnormal program termination. This does not execute cleanup functions registered with atexit or on_exit.
It should also raise SIGABRT signal that could be intercepted by the user.
I tryed to test abort() and SIGABRT but seems that signals aren't handled in Redlib also if signal macros, signal() and raise() are declared in signal.h
2. atoll(), llabs(), lldiv(), strtoll(), strtoull(), strtold(), _Exit():
declared in stdlib.h but not implemented in the library. But ldiv_t and lldiv_t are defined.
3. mblen(), mbtowc(), wctomb(), mbstowcs(), wcstombs()
declared and implemented but wprintf() is not implemented and printf() doesn't accept %ls or %S to print wchar_t strings.
Actually I don't need wchar_t support functions but I still need 64bit data type functions so I am implementing them.