Declaration of xdata * data_buf

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In an example program there is the code:
u_char xdata * data_buf = 0x7000; // Location of received_buffer

When I want to compile the program it gives the error "impossible type
conversion". If I delete the 0x7000 part then it is fine, but then the
pointer "data_buf" in "recv(s, data_buf, len);" does not work any more.

Any one who can help me..? Especially with the * sign.
 
This is C not C#.

u_char xdata * data_buf = (u_char*)(void*)0x7000;

should compile at least.
 
Back
Top