MCPcopy Create free account
hub / github.com/ElementsProject/lightning / pipecmdv

Function pipecmdv

ccan/ccan/pipecmd/pipecmd.c:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32pid_t pipecmdv(int *fd_tochild, int *fd_fromchild, int *fd_errfromchild,
33 const char *cmd, va_list ap)
34{
35 char **arr = gather_args(cmd, ap);
36 pid_t ret;
37
38 if (!arr) {
39 errno = ENOMEM;
40 return -1;
41 }
42 ret = pipecmdarr(fd_tochild, fd_fromchild, fd_errfromchild, arr);
43 free_noerr(arr);
44 return ret;
45}
46
47pid_t pipecmdarr(int *fd_tochild, int *fd_fromchild, int *fd_errfromchild,
48 char *const *arr)

Callers 1

pipecmdFunction · 0.85

Calls 3

pipecmdarrFunction · 0.85
free_noerrFunction · 0.85
gather_argsFunction · 0.70

Tested by

no test coverage detected