Main Page   Compound List   File List   Compound Members   File Members  

rr_libs/rr_fseek.c

Go to the documentation of this file.
00001 /* rr_fseek() */
00002 /*=====================================================================
00003                 =======   COPYRIGHT NOTICE   =======
00004 Copyright (C) 1994, Carnegie Mellon University and Ronald Rosenfeld.
00005 All rights reserved.
00006 
00007 This software is made available for research purposes only.  It may be
00008 redistributed freely for this purpose, in full or in part, provided
00009 that this entire copyright notice is included on any copies of this
00010 software and applications and derivations thereof.
00011 
00012 This software is provided on an "as is" basis, without warranty of any
00013 kind, either expressed or implied, as to any matter including, but not
00014 limited to warranty of fitness of purpose, or merchantability, or
00015 results obtained from use of this software.
00016 ======================================================================*/
00017 
00018 /* call fseek and quit if it fails 
00019    Roni Rosenfeld, 10/92  */
00020 
00021 /* Edited by Philip Clarkson, March 1997 to prevent compilation warnings */
00022 
00027 #include <stdio.h>
00028 #include "general.h"
00029 
00030 void *rr_fseek(FILE *fp, int offset, int mode, char *description)
00031 {
00032   if (fseek(fp,offset,mode) < 0)
00033     quit(-1,"ERROR: fseek(<%s>,%d,%d) is improper\n",
00034              description, offset, mode);
00035 
00036   return(0); /* Not relevant, but stops compilation warnings. */
00037 
00038 }

Generated on Tue Dec 21 13:54:46 2004 by doxygen1.2.18