def seof(HDR):
	"""input: HDR_TYPE HDR
	output: [-1, 0]
	Indicates if end of data is reached.
	Returns 0 after the last block, -1 otherwise."""
	
	if HDR.FILE.POS >= HDR.NRec:
		return 0
	return -1
	#End of SEOF
	
	
	###########
	# SREWIND #
	###########