chunli@ubuntu14:~$ file haha.h haha.h: C source, ISO-8859 text, with CRLF line terminators
chunli@ubuntu14:~$ iconv -f gbk -t utf8 haha.h > derlog.h
chunli@ubuntu14:~$ file derlog.h
derlog.h: C source, UTF-8 Unicode text, with CRLF line terminators
chunli@ubuntu14:~$
源码chunli@ubuntu14:~$ tail haha.h 4 -- err±int statusconst char *fmt�W*//************************************************************************///�@攀瘀攀��extern int LogLevel[5];void ITDER_LOG(const char *file, int line, int level, int status, const char *fmt, ...);#endifchunli@ubuntu14:~$ 转码chunli@ubuntu14:~$ tail derlog.h 4 -- err级别int status:错误码const char *fmt:可变参数*//************************************************************************///实际使用的Levelextern int LogLevel[5];void ITDER_LOG(const char *file, int line, int level, int status, const char *fmt, ...);#endifchunli@ubuntu14:~$
本文出自 “李春利” 博客,谢绝转载!