avr-fw-modules/core/src/dev_null.c

22 lines
254 B
C
Raw Normal View History

2017-09-27 13:25:39 +02:00
#include <stdio.h>
#include <hwo/utils.h>
#include <sys/atomic.h>
int null_get(FILE *stream)
{
return 0;
};
int null_put(char ch,FILE *stream)
{
return 0;
};
FILE* dev_null(void)
{
FILE *devnull = fdevopen(null_put,null_get);
return devnull;
};