summaryrefslogtreecommitdiff
path: root/src/libexecline/el_parse_from_string.c
blob: 04c48a3a8ac82511ce385be6769480e740d76564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <skalibs/stralloc.h>
#include <execline/execline.h>

static int next (unsigned char *c, void *p)
{
  *c = *(*(char const **)p)++ ;
  return 1 ;
}

int el_parse_from_string (stralloc *sa, char const *s)
{
  return el_parse(sa, &next, &s) ;
}