ha_fclose
![]() |
![]() |
![]() |
![]() |
ha_fclose()
Detach an attached HA file descriptor for a file stream, then close it
Synopsis:
#include <ha/stdio.h> int ha_fclose(FILE *stp);
Library:
libha
Description:
The ha_fclose() convenience function detaches a connection associated with the file stream stp that was previously attached using ha_attach(), and then closes the connection.
Returns:
- 0
- Success
- -1
- An error occurred (errno is set).
Errors:
The ha_fclose() function returns errors as returned by either the underlying fclose() call or the ha_detach() call.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
ha_attach(), ha_ConnectDetach(), ha_detach(), ha_open()
In the Library Reference: fclose()
![]() |
![]() |
![]() |
![]() |
![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)