testincl
来自「Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分」· 代码 · 共 32 行
TXT
32 行
#!/bin/sh## call:# COMPILE=...; export COMPILE# if ./testincl [-q] "foo.h" ...#echo=echocase $1 in -q) echo=":" shift ;;esacIFILE="<$1>"echo "#include $IFILEmain(){ exit(0); }" > conftest.ceval $COMPILE# Brian Murphy asks not to run conftest since that fails on cross-compilation.# Maybe just testing for the existence of conftest suffices.# if test -s conftest && ./conftest 2>/dev/null; thenif test -s conftest 2>/dev/null; then res=0 $echo "You have $IFILE"else res=1 $echo "You don't have $IFILE"firm -f conftest conftest.cexit $res
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?