[#subprocess-Popen-send-03]
= xref:subprocess.adoc[subprocess]::xref:subprocess/Popen.adoc[Popen]::send
:relfileprefix: ../../
:mrdocs:

Sends the contents of a byte vector to the child&apos;s input channel&period;

== Synopsis

Declared in `&lt;util&sol;subprocess&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
send(std::vector&lt;char&gt; const& msg);
----

== Return Value

Number of bytes written, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg*
| Bytes to send&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
