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 |
Page updated:
