home *** CD-ROM | disk | FTP | other *** search
- short foo(char, short, long);
- pascal short bar(char, short, long);
- pascal short (*tobar)(char, short, long);
-
- typedef pascal short (*barptr)(char, short, long);
-
- barptr tobar2;
- pascal barptr tobar3;
-
- short fancy(barptr callback, short ditem);
-
- main()
- {
- foo(1, 2, 3);
- bar(4, 5, 6);
- (*tobar)(7, 8, 9);
- (*tobar2)(10, 11, 12);
- (*tobar3)(13, 14, 15);
- fancy(tobar2, 12345);
- }
-
- short fancy(barptr callback, short ditem)
- {
- return (*callback)(1, ditem, 3);
- }
-