a C standard library for fx Casio calculators
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
330 B

#include <stdio.h>
#include <string.h>
#include <unistd.h>
** puts() writes the string s and a trailing newline to stdout.
** FIXME: check last write error !
int puts(const char *s)
size_t size;
size_t n;
size = strlen(s);
n = write(STDOUT_FILENO, s, size);
write(STDOUT_FILENO, "\n", 1);
return (-(n == size));