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/fprintf.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 fprintf Context: slangrtl

Synopsis

Create and write a formatted string to a file

Syntax

Int_Type fprintf (File_Type fp, String_Type fmt, ...)

Description

fprintf formats the objects specified by the variable argument list according to the format fmt and write the result to the open file pointer fp.

The format string obeys the same syntax and semantics as the sprintf format string. See the description of the sprintf function for more information.

fprintf returns the number of characters written to the file, or -1 upon error.

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.