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

#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 ;
}