mescc: Mes C Library: Prepare for M2-Planet: fdungetc.

* lib/mes/fdungetc.c: Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-05-17 19:28:28 +02:00 committed by Jan Nieuwenhuizen
parent 2ab42f7d10
commit e6d06cc63a
No known key found for this signature in database
GPG Key ID: A781B6A92F5C71D6
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@
*/
#include <mes/lib.h>
#include <assert.h>
int
fdungetc (int c, int fd)
@ -31,7 +30,7 @@ fdungetc (int c, int fd)
eputs (" ***MES C LIB*** fdungetc ungetc buffer overflow fd=");
eputs (itoa (fd));
eputs ("\n");
assert (0);
assert_msg (0, "0");
}
__ungetc_set (fd, c);
return c;