摘要:
【Function Names as Strings】GCC provides three magic variables that hold the name of the current function, as a string. The first of these is__func__, which is part of the C99 standard(old):The identifier__func__is implicitly declared by the translator as if, immediately following the opening brace o 阅读全文
posted @ 2013-11-19 22:32
Tekkaman
阅读(370)
评论(0)
推荐(0)
摘要:
【linux主机名】 1、查看主机名 主机名即是一台主机的名字,在终端窗口中输入命令:hostname或uname –n,均可以查看到当前主机的主机名。2、临时修改主机名 命令行下运行命令:“hostname 新主机名”,不过采用这种方式,新主机名并不保存在系统中,重启系统后主机名将恢复为原先的主机名称。 例子:hostname ubuntu-temp 这样主机名字就临时被修改为ubuntu-temp,但是终端下不会立即显示生效后的主机名,重开一个终端窗口(通过ssh连接的终端需要重新连接才可以);3、永久修改主机名 在Ubuntu系统中永久修改主机名也比较简单。主机名存放在/et... 阅读全文
posted @ 2013-11-19 22:18
Tekkaman
阅读(517)
评论(0)
推荐(0)
浙公网安备 33010602011771号