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

📄 fgetpos.c

📁 VXWORKS源代码
💻 C
字号:
/* fgetpos.c - get position in file. stdio.h *//* Copyright 1992-1993 Wind River Systems, Inc. */ /*modification history--------------------01c,05mar93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,29jul92,jcf  Added OBJ_VERIFY	    smb  written.*/  /*DESCRIPTIONINCLUDE FILE: stdio.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "stdio.h"#include "objLib.h"/******************************************************************************** fgetpos - store the current value of the file position indicator for a stream (ANSI)** This routine stores the current value of the file position indicator for a* specified stream <fp> in the object pointed to by <pos>.  The value stored* contains unspecified information usable by fsetpos() for repositioning* the stream to its position at the time fgetpos() was called.* * INCLUDE FILES: stdio.h ** RETURNS:* Zero, or non-zero if unsuccessful, with `errno' set to indicate the error.** SEE ALSO: fsetpos()*/int fgetpos    (    FILE *	fp,	/* stream */    fpos_t *	pos	/* where to store position */    )    {    if (OBJ_VERIFY (fp, fpClassId) != OK)	return (ERROR);    return (!((*pos = ftell (fp)) != (fpos_t) -1));    }

⌨️ 快捷键说明

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