mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-06-02 00:45:11 +02:00
@update > CMakeLists.txt | remove casiowin-* target (unused) | remove x86-generic target (unused) | update files location | remove old vhex sources files (deprecated, unused) > src/posix | remove this folder > src/libc | move its content to src/ | remove thread module > src/stdlib/reallocarray | check if the multiplication overflow failed | set appropriate errno value if multiplication failed
10 lines
215 B
C
10 lines
215 B
C
#include "stdlib_p.h"
|
|
#include <errno.h>
|
|
|
|
float strtof(char const * restrict ptr, char ** restrict endptr)
|
|
{
|
|
float f = 0;
|
|
int err = __strto_fp(ptr, endptr, NULL, &f, NULL);
|
|
if(err != 0) errno = err;
|
|
return f;
|
|
}
|