Can a struct contain his pointer?


#1

Hi … I need to declare

typedef struct{

int numero;
int indirizzo;
DB_data * ;

} DB_data;

but I receive many error from the Compiler

Can anyone Help me ?

thanks
Dario72


#2

This is a standard ‘C’ programming issue, and has nothing specifically to do with Open-AT.

See: c-faq.com/

In particular: c-faq.com/decl/selfrefstruct.html
and: c-faq.com/decl/mutrefstructs.html