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

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

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