Package: Ada.Text_IO.C_Streams

Dependencies

with Interfaces.C_Streams;

Description

This package provides an interface between Ada.Text_IO and the C streams. This allows sharing of a stream between Ada and C or C++, as well as allowing the Ada program to operate directly on the stream.

Header

package Ada.Text_IO.C_Streams is
 

Other Items:

package ICS renames Interfaces.C_Streams;

function C_Stream (F : File_Type) return ICS.FILEs;
Obtain stream from existing open file

procedure Open
  (File     : in out File_Type;
   Mode     : in File_Mode;
   C_Stream : in ICS.FILEs;
   Form     : in String := "");
Create new file from existing stream
end Ada.Text_IO.C_Streams;