没有main函数的C程序

标签: , ,

在Visual C++中新建一个Console Application工程,添加一个.c文件,代码如下:

#pragma comment(linker, "/Entry:demon")

void demon()
{
    __asm ret;
}

严格的说这好像已经不是C程序了,而且和编译器有关。没错,这只是标题党。

赞赏

微信赞赏支付宝赞赏

随机文章:

  1. VBS 自动登录论坛
  2. VBS中TextStream对象的ReadLine方法
  3. 用C语言实现PHP的urlencode函数
  4. Firefox插件JSView
  5. 利用WMI打造完美“三无”后门-U盘侦测与Autorun

留下回复