BOOL clsadb (adb_id)
ADB_CNTRL_BLOCK *adb_id
ClsADB closes the specified ADB set
adb_id
ADB set to be closed
ClsADB
true if the ADB set was closed properly. In this case the contents of adb_id will be useless. If the routine fails false will be returned and adb_id will still point to a valid ADB control block.
BOOL clsadb(adb_id) close the ADB file free the name of the adb free the adb control block return
/* FILE: CLSADB.C */ #include #include "air.h" BOOLE clsadb(adb_id) ADB_CNTRL_BLOCK *adb_id ; { BOOLE result ; fclose(adb_id->file_id) ; free(adb_id->set_name,NULL) ; free(adb_id,NULL) ; return(YES) ; }