root / proj / src / hltp.c @ 269
History | View | Annotate | Download (340 Bytes)
1 |
#include <lcom/lcf.h> |
---|---|
2 |
|
3 |
#include "hltp.h" |
4 |
|
5 |
#include "nctp.h" |
6 |
|
7 |
int hltp_send_string(int base_addr, const char *p){ |
8 |
uint8_t* ptr[1]; ptr[0] = (uint8_t*)p; |
9 |
size_t sz[1]; sz[0] = strlen(p)+1; |
10 |
return nctp_send(base_addr, 1, ptr, sz); |
11 |
} |
12 |
|
13 |
int hltp_get_string(int base_addr, char **p){ |
14 |
return nctp_get(base_addr, (uint8_t**)p);
|
15 |
} |