⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fseek_.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*char id_fseek[] = "@(#)fseek_.c	1.2"; * * position a file associated with a fortran logical unit * * calling sequence: *	ierror = fseek(lunit, ioff, ifrom) * where: *	lunit is an open logical unit *	ioff is an offset in bytes relative to the position specified by ifrom *	ifrom	- 0 means 'beginning of the file' *		- 1 means 'the current position' *		- 2 means 'the end of the file' *	ierror will be 0 if successful, a system error code otherwise. */#include	<stdio.h>#include	"../libI77/f_errno.h"#include	"../libI77/fiodefs.h"extern unit units[];long fseek_(lu, off, from)long *lu, *off, *from;{	if (*lu < 0 || *lu >= MXUNIT)		return((long)(errno=F_ERUNIT));	if (*from < 0 || *from > 2)		return((long)(errno=F_ERARG));	if (!units[*lu].ufd)		return((long)(errno=F_ERNOPEN));	if (fseek(units[*lu].ufd, *off, (int)*from) < 0)		return((long)errno);	return(0L);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -