summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_nextmsg.c
blob: 4954db9c112ecb51e1bf1a85f18100661597badb (plain)
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_nextmsg (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 ;
  }
}