mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
Remove newlib dependency, include own stdio/string/assert
This commit is contained in:
15
firmware/libcommon/source/fputs.c
Normal file
15
firmware/libcommon/source/fputs.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include "uart_console.h"
|
||||
|
||||
int fputc(int c, FILE *stream)
|
||||
{
|
||||
UART_PutChar(c);
|
||||
return c;
|
||||
}
|
||||
|
||||
int fputs(const char *s, FILE *stream)
|
||||
{
|
||||
while (*s != '\0')
|
||||
UART_PutChar(*s++);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user