1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* ISC license. */ #include <string.h> #include <bcnm/wpactrl.h> void wpactrl_ackmsg (wpactrl_t *a) { if (a->datahead < a->data.len) a->datahead += strlen(a->data.s + a->datahead) + 1 ; if (a->datahead >= a->data.len) { a->data.len = 0 ; a->datahead = 0 ; } }