mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-07-11 06:47:33 +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
11 lines
154 B
C
11 lines
154 B
C
#include <stdio.h>
|
|
|
|
int puts(char const *s)
|
|
{
|
|
int rc = 0;
|
|
if(fputs(s, stdout) != 0)
|
|
rc = -1;
|
|
if(fputc('\n', stdout) == EOF)
|
|
rc = -1;
|
|
return rc;
|
|
}
|