示例#1
0
文件: main.c 项目: arthurxuwei/Study
int main( int argc, char* argv[] )
{
	struct list *l = cons(1.5, cons(2.6, cons(3.7, nil())));
	high_level_func( print, l);
//	printf("%d",argc);
	return 0;
}
示例#2
0
文件: main.c 项目: arthurxuwei/Study
void high_level_func ( void (*f)(struct list *l), struct list *l)
{
	switch ( (int)l )
	{
	case 0:
		printf(	"^" );
		return;
	default:
		f(l);
		high_level_func( f, l->next);
		return;
	}
}
示例#3
0
void other_stuff()
{
    high_level_func();
    do_other_stuff();
}
示例#4
0
void thread_a()
{
    high_level_func();
}