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

📄 compat.c

📁 mips上编译过的mpg 运行正常 环境:AU12
💻 C
字号:
/*	compat: Some compatibility functions.	copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1	see COPYING and AUTHORS files in distribution or http://mpg123.org	initially written by Thomas Orgis*/#include "config.h"#include "compat.h"/* A safe realloc also for very old systems where realloc(NULL, size) returns NULL. */void *safe_realloc(void *ptr, size_t size){	if(ptr == NULL) return malloc(size);	else return realloc(ptr, size);}#ifndef HAVE_STRERRORconst char *strerror(int errnum){	extern int sys_nerr;	extern char *sys_errlist[];	return (errnum < sys_nerr) ?  sys_errlist[errnum]  :  "";}#endif

⌨️ 快捷键说明

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