mescc: Mes C Library: oputs: New function.

* lib/mes/oputc.c: New file.
* lib/libmes.c: Include it.
* include/libmes.h: Declare it.
This commit is contained in:
Jan Nieuwenhuizen 2018-10-15 15:44:47 +02:00
parent d472c4b6f2
commit 999642052b
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
3 changed files with 29 additions and 0 deletions

View file

@ -43,6 +43,7 @@ int isspace (int c);
int isxdigit (int c);
int _open3 (char const *file_name, int flags, int mask);
int _open2 (char const *file_name, int flags);
int oputc (int c);
int oputs (char const* s);
ssize_t write (int filedes, void const *buffer, size_t size);
char *search_path (char const *file_name);

View file

@ -47,3 +47,4 @@
#endif // POSIX
#include <mes/eputc.c>
#include <mes/oputc.c>

27
lib/mes/oputc.c Normal file
View file

@ -0,0 +1,27 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
*
* This file is part of GNU Mes.
*
* GNU Mes is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* GNU Mes is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
int
oputc (int c)
{
return fdputc (c, STDOUT);
}