home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
mov_poin.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
724b
|
26 lines
/*--------------------------------------*/
/* */
/* MOV_POINTER(X,X,X,X) */
/* */
/* Moves a file pointer to a desired */
/* location. The first argument is the */
/* file description. The second argument*/
/* is the record number. The third argu-*/
/* ment is the record length. The fourth*/
/* argument is the number to add to the */
/* product produced by the second and */
/* third arguments. (NOTE: The location */
/* is referenced from the front of the */
/* file.) */
/* */
/*--------------------------------------*/
# include "stdio.h"
void mov_pointer(fd,a,b,c)
int a,b,c;
FILE *fd;
{
long h;
h=(long)(a*((long)b)+c);
fseek(fd,h,0);
}