Admin Production ni-theme
Current Publication

close

LabWindows/CVI

close

int close (int fileHandle);

Purpose

Flushes the system buffers for the specified file handle and closes the associated file. The function can return an error even when the file handle is valid because this function can flush the write buffer.

Note Note  This function is not in the ANSI standard. To use this function, you must include lowlvlio.h in your program or interactive window.

Parameters

Input
Name Type Description
fileHandle int Contains a file handle that will be closed.

Return Value

Name Type Description
status int Contains the status returned by the function. If the function succeeds, close returns 0. If an error occurs, close returns -1 and sets errno to a nonzero value.

Additional Information

Library: ANSI C Library

Include file: lowlvlio.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later