About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/fdopen.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 fdopen Context: slangrtl

Synopsis

Convert a FD_Type file descriptor to a stdio File_Type object

Syntax

File_Type fdopen (FD_Type, String_Type mode)

Description

The fdopen function creates and returns a stdio File_Type object from the open FD_Type descriptor fd. The mode parameter corresponds to the mode parameter of the fopen function and must be consistent with the mode of the descriptor fd. The function returns NULL upon failure and sets errno.

The fclose function does not close the File_Type object returned from this function. The underlying file object must be closed by the close function.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.