Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Calloc problem

So there are some procedures
Dv_decoder_t *result;
  
Result = calloc (1, sizeof (dv_decoder_t));
If (!result) goto no_mem;
Compiler being given.
Msdn check and see such a
Void main (void)
{
Long *buffer;

Buffer = (long *) calloc (40, sizeof (long));
。。。

But the problem is that dv_decoder_t structure is, how it can be defined data types?

Result = (dv_decoder_t *) calloc (1, sizeof (dv_decoder_t));

Thank you, through the



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com