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

📄 lmplatform.c

📁 C编写的格式转换程序
💻 C
字号:
/*************************************************************************** * lmplatform.c: *  * Platform portability routines. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License * as published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Library General Public License (GNU-LGPL) for more details.  The * GNU-LGPL and further information can be found here: * http://www.gnu.org/ * * Written by Chad Trabant, IRIS Data Management Center * * modified: 2006.082 ***************************************************************************//* Define _LARGEFILE_SOURCE to get ftello/fseeko on some systems (Linux) */#define _LARGEFILE_SOURCE 1#include <errno.h>#include "lmplatform.h"/*************************************************************************** * lmp_ftello: * * Return the current file position for the specified descriptor using * the system's closest match to the POSIX ftello. ***************************************************************************/off_tlmp_ftello (FILE *stream){#if defined(LMP_WIN32)  return (off_t) ftell (stream);#else  return (off_t) ftello (stream);#endif}  /* End of lmp_ftello() *//*************************************************************************** * lmp_fseeko: * * Seek to a specific file position for the specified descriptor using * the system's closest match to the POSIX fseeko. ***************************************************************************/intlmp_fseeko (FILE *stream, off_t offset, int whence){#if defined(LMP_WIN32)  return (int) fseek (stream, (long int) offset, whence);  #else  return (int) fseeko (stream, offset, whence);  #endif}  /* End of lmp_fseeko() */

⌨️ 快捷键说明

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