view symbol-c.c @ 8:ae12f717a62e draft default tip

fix first example
author one
date Wed, 07 Jun 2017 14:57:55 +0900
parents daa6a4e92480
children
line wrap: on
line source

extern int printf(char*,...);
void test_func(){
}
unsigned long addrs[]={
     (unsigned long)test_func,
     0,
};
int main()
{
     int i;
     for(i=0;addrs[i]>0;i++) printf("%lx\n",addrs[i]);
     printf("%lx\n",(unsigned long)test_func);
     return(0);
}