bin/varnishd/cache/cache_vrt.c
struct strands *
VRT_AllocStrandsWS(struct ws *ws, int n)
{
	struct strands *s;
	const char **p;

	s = WS_Alloc(ws, sizeof *s);
	p = WS_Alloc(ws, n * sizeof *p);

	if (s == NULL || p == NULL)
		return (NULL);

	s->n = n;
	s->p = p;

	return (s);
}
/*--------------------------------------------------------------------
 * Alloc Strands with space for n elements on workspace
 *
 * Error handling is deliberately left to the caller
 */
Alloc Strands with space for n elements on workspace
Error handling is deliberately left to the caller
Alloc Strands with space for n elements on workspace Error handling is deliberately left to the caller
struct strands *
VRT_AllocStrandsWS(struct ws *ws, int n)
{
	struct strands *s;
	const char **p;
	s = WS_Alloc(ws, sizeof *s);
	p = WS_Alloc(ws, n * sizeof *p);
	if (s == NULL || p == NULL)
		return (NULL);
	s->n = n;
	s->p = p;
	return (s);
}
struct strands * VRT_AllocStrandsWS ( struct ws * ws , int n ) { struct strands * s ; const char * * p ; s = WS_Alloc ( ws , sizeof * s ) ; p = WS_Alloc ( ws , n * sizeof * p ) ; if ( s == NULL || p == NULL ) return ( NULL ) ; s -> n = n ; s -> p = p ; return ( s ) ; }
Alloc Strands with space for n elements on workspace
 Error handling is deliberately left to the caller
Alloc Strands with space for n elements on workspace Error handling is deliberately left to the caller