在路上...

The development of life
我们一直都在努力,有您的支持,将走得更远...

站内搜索: Google

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

U32 downloadAddress = 0;

void main(void)
{

     void (*startp)(void);                                     //定义一个函数指针

     startp = (void (*)(void))downloadAddress;     //把一个32位的数转换成指针,且指针类型为函数指针。然后把这个指针付给; 前面定义好的函数指针

     (*startp)();   //用函数指针执行指定地址的代码

}

posted on 2009-09-06 23:19  palam  阅读(265)  评论(0编辑  收藏  举报