MCPcopy Index your code
hub / github.com/RsyncProject/rsync / write_opt

Function write_opt

batch.c:193–203  ·  view source on GitHub ↗

Writes out a space and then an option (or other string) with an optional "=" + arg suffix. */

Source from the content-addressed store, hash-verified

191
192/* Writes out a space and then an option (or other string) with an optional "=" + arg suffix. */
193static int write_opt(const char *opt, const char *arg)
194{
195 int len = strlen(opt);
196 int err = write(batch_sh_fd, " ", 1) != 1;
197 err = write(batch_sh_fd, opt, len) != len ? 1 : 0;
198 if (arg) {
199 err |= write(batch_sh_fd, "=", 1) != 1;
200 err |= write_arg(arg);
201 }
202 return err;
203}
204
205static void write_filter_rules(int fd)
206{

Callers 1

write_batch_shell_fileFunction · 0.85

Calls 1

write_argFunction · 0.85

Tested by

no test coverage detected