📄 os_divers.c
字号:
/*
* GPAC - MPEG-4 Systems C Development Kit
*
* Copyright (c) Jean Le Feuvre 2000-2003
* All rights reserved
*
* This file is part of GPAC / common tools sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* GPAC 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Make; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <gpac/m4_tools.h>
#ifndef M4_READ_ONLY
FILE *M4NewTMPFile()
{
return tmpfile();
}
#endif
void M4_GetUTCTimeSince1970(u32 *sec, u32 *msec)
{
struct _timeb tb;
_ftime( &tb );
*sec = tb.time;
*msec = tb.millitm;
}
Bool M4IsLargeFile(char *path)
{
FILE *stream;
s64 size;
stream = fopen(path, "rb");
if (!stream) return 0;
size = _filelengthi64(_fileno(stream));
fclose(stream);
if (size == -1L) return 0;
if (size > 0xFFFFFFFF) return 1;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -