rewind.c File Reference

#include "f2c.h"
#include "fio.h"

Include dependency graph for rewind.c:

Go to the source code of this file.

Functions

integer f_rew (alist *a)


Function Documentation

integer f_rew ( alist a  ) 

Definition at line 9 of file rewind.c.

References a, b, err, f__units, MXUNIT, NULL, t_runc(), and void().

00011 {
00012         unit *b;
00013         if(a->aunit>=MXUNIT || a->aunit<0)
00014                 err(a->aerr,101,"rewind");
00015         b = &f__units[a->aunit];
00016         if(b->ufd == NULL || b->uwrt == 3)
00017                 return(0);
00018         if(!b->useek)
00019                 err(a->aerr,106,"rewind")
00020         if(b->uwrt) {
00021                 (void) t_runc(a);
00022                 b->uwrt = 3;
00023                 }
00024         rewind(b->ufd);
00025         b->uend=0;
00026         return(0);
00027 }

Here is the call graph for this function:


Generated on Sun Mar 4 15:05:23 2007 for Scilab [trunk] by  doxygen 1.5.1