📄 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 timeval tp;
gettimeofday(&tp, NULL);
*sec = tp.tv_sec;
*msec = tp.tv_usec*1000;
}
/*FIXME*/
Bool M4IsLargeFile(char *path)
{
return 0;
}
char * my_str_upr(char *str)
{
u32 i;
for (i=0; i<strlen(str); i++) {
str[i] = toupper(str[i]);
}
return str;
}
char * my_str_lwr(char *str)
{
u32 i;
for (i=0; i<strlen(str); i++) {
str[i] = tolower(str[i]);
}
return str;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -