summaryrefslogtreecommitdiff
path: root/src/libstddjb/string_unquote_nodelim.c
blob: cabe5049dbc357a4a7db93b64dc47be852a14a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <sys/types.h>
#include <errno.h>
#include <skalibs/skamisc.h>

ssize_t string_unquote_nodelim (char *d, char const *s, size_t len)
{
  size_t rr, ww ;
  if (!string_unquote_withdelim(d, &ww, s, len, &rr, 0, 0)) return -1 ;
  return (ssize_t)ww ;
}