def sclose(HDR):
	"""input:  HDR_TYPE HDR
	output: [-1, 0]
	Closes the according file.
	Returns 0 if successfull, -1 otherwise."""
	
	if HDR.FILE.OPEN != 0:
		HDR.FILE.FID.close()
		HDR.FILE.FID = 0
		HDR.FILE.OPEN = 0
		return 0
	return -1
	# End of SCLOSE
	
	
	###########
	#  SREAD  #
	###########