home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_12
/
9n12114c
< prev
next >
Wrap
Text File
|
1991-10-21
|
483b
|
28 lines
/* LISTING 6 - OBJ.C */
#include <stdio.h>
#include "obj.h"
/* action pack is external */
extern CIRCLE_ACTIONS cact;
main()
{
int col;
/* set color value and actions */
CIRCLE c1 = { 14, &cact };
col = (*c1.pcact[GETCOLOR])(&c1);
printf("c1 is color %d\n", col);
/* try to get direct access to c1's
color function */
/* cgetcolor(&c1);
linker error: cgetcolor :
unresolved external */
}