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 Nieuwenhuizen 2019-10-20 19:28:28 +02:00
parent 790d2ebb91
commit cdc4256758
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
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;