/*
 * (c) 2005 Research Group Dr. Fuhrmann, University of Karlsruhe, Germany
 * All rights reserved.
 *
 * Author:
 *         Stefan Denk <denk@ira.uka.de>
 *
 * $Id: cutatoffset.c,v 1.3 2005/12/27 07:47:53 kutzner Exp $
 *
 */

/*************************************************************
 *
 * just cut the file at the last valid offset
 *
 *************************************************************/
#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>

int cutatoffset(int recfp, uint32_t offset) 	
{
	return ftruncate(recfp, offset);
	
}
