Share via


filebuf::fd

filedesc fd() const;

Returns the file descriptor associated with the filebuf object; filedesc is a typedef equivalent to int.

Return Value

The value is supplied by the underlying file system. The function returns EOF if the object is not attached to a file.

filebuf OverviewStream Buffer Classes

See Also   filebuf::attach