Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

ftell_.c File Reference

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

Go to the source code of this file.


Functions

FILE * unit_chk (integer unit, char *who)
integer ftell_ (integer *unit)
int fseek_ (integer *unit, integer *offset, integer *whence)

Function Documentation

int fseek_ integer   unit,
integer   offset,
integer   whence
 

Definition at line 31 of file ftell_.c.

References offset, and unit_chk().

00033 {
00034         FILE *f;
00035         return  !(f = unit_chk(*unit, "fseek"))
00036                 || fseek(f, *offset, (int)*whence) ? 1 : 0;
00037         }

integer ftell_ integer   unit
 

Definition at line 20 of file ftell_.c.

References L, and unit_chk().

00022 {
00023         FILE *f;
00024         return (f = unit_chk(*unit, "ftell")) ? ftell(f) : -1L;
00025         }

FILE* unit_chk integer    unit,
char *    who
[static]
 

Definition at line 8 of file ftell_.c.

References f__fatal(), and MXUNIT.

Referenced by fseek_(), and ftell_().

00010 {
00011         if (unit >= MXUNIT || unit < 0)
00012                 f__fatal(101, who);
00013         return f__units[unit].ufd;
00014         }
 

Powered by Plone

This site conforms to the following standards: