]> git.ozlabs.org Git - ccan/blobdiff - ccan/pipecmd/_info
pipecmd: reverse order of args to match documentation; add pipecmd_preserve.
[ccan] / ccan / pipecmd / _info
index a560bfea05ccc4e53807dde67d0546c48b6f0246..8c49511a250c2cbc99f93d4628d80dd0c5c971f2 100644 (file)
@@ -32,7 +32,7 @@
  *                     exit(1);
  *             exit(0);
  *     }
- *     child = pipecmd(&outputfd, NULL, NULL, argv[0], "ignoredarg", NULL);
+ *     child = pipecmd(NULL, &outputfd, NULL, argv[0], "ignoredarg", NULL);
  *     if (child < 0)
  *             err(1, "Creating child");
  *     if (read(outputfd, input, sizeof(input)) != sizeof(input))