blob: 279e79da78dbe5b67cb0d3625d98b202407a572f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <sys/types.h>
#include <skalibs/bytestr.h>
#include <execline/execline.h>
int el_vardupl (char const *key, char const *s, size_t len)
{
register size_t i = 0 ;
for (; i < len ; i += str_len(s + i) + 1)
if (!str_diff(key, s + i)) return 1 ;
return 0 ;
}
|