blob: d49c46e1089627ba1e75c960d25bdbe6a91eb491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stream_stdio.h"
#include "stream.h"
#include "main.h"
int read_STDIO(uint8_t* buf, size_t count, void **vptr, void *sptr)
{
int x;
for (x = 0; x < count; x++) {
scanf("%c", &buf[x]);
}
return 0;
}
int write_STDIO(uint8_t* buf, size_t count, void **vptr, void *sptr)
{
int x;
for (x = 0; x < count; x++) {
printf("%x", buf[x]);
}
printf("\n");
return 0;
}
|