c_popen Interface

interface
private function c_popen(command, mode) bind(C, name="popen")

Arguments

Type IntentOptional Attributes Name
character(kind=c_char, len=1), intent(in), dimension(*) :: command
character(kind=c_char, len=1), intent(in), dimension(*) :: mode

Return Value type(c_ptr)

Description

Open a pipe to a command and return file pointer.

@param command The command to execute @param mode Open mode ("r" for read, "w" for write) @return C pointer to FILE stream, or NULL on failure