[#subprocess-Popen-send-06] = xref:subprocess.adoc[subprocess]::xref:subprocess/Popen.adoc[Popen]::send :relfileprefix: ../../ :mrdocs: `send` overloads == Synopses Declared in `<util/subprocess.h>` Sends the contents of a string to the child's input channel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:subprocess/Popen/send-0b.adoc[send](std::string const& msg); ---- [.small]#xref:subprocess/Popen/send-0b.adoc[_» more..._]# Sends the contents of a byte vector to the child's input channel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:subprocess/Popen/send-03.adoc[send](std::vector<char> const& msg); ---- [.small]#xref:subprocess/Popen/send-03.adoc[_» more..._]# Sends raw bytes to the child's input channel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:subprocess/Popen/send-0a.adoc[send]( char const* msg, size_t length); ---- [.small]#xref:subprocess/Popen/send-0a.adoc[_» more..._]# == Return Value Number of bytes written, or ‐1 on error. == Parameters [cols="1,4"] |=== | Name| Description | *msg* | Text to send. | *length* | Number of bytes to send. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#