WriteProgramData()

Syntax

Result = WriteProgramData(Program, *Buffer, Size)
Description
Writes the data from the buffer to the specified programs input (stdin).

Parameters

Program The program to use. It must have been started before with RunProgram() and the #PB_Program_Write flag.
*Buffer The memory buffer to write the data from. The special value #PB_Program_Eof can be used instead of a real memory buffer to make the program receive an EOF (end of file) in its input (which tells the program that there will be no more input). The 'Size' parameter is ignored in this case. After calling WriteProgramData() with this special value, no more input may be written to the program.
Size The size to write.

Return value

The number of bytes actually written.

See Also

WriteProgramString(), WriteProgramStringN()

Supported OS

All

<- WaitProgram() - Process Index - WriteProgramString() ->