root / proj / src / hltp.c @ 269
History | View | Annotate | Download (340 Bytes)
1 | 264 | up20180642 | #include <lcom/lcf.h> |
---|---|---|---|
2 | |||
3 | #include "hltp.h" |
||
4 | |||
5 | #include "nctp.h" |
||
6 | |||
7 | 269 | up20180642 | 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 | 264 | up20180642 | } |
12 | 266 | up20180642 | |
13 | 269 | up20180642 | int hltp_get_string(int base_addr, char **p){ |
14 | return nctp_get(base_addr, (uint8_t**)p);
|
||
15 | 266 | up20180642 | } |