Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What are the different type of calloc() function?
Some main calloc() function with their description are given below:

      Function               Description     
void *calloc(size_t num, The ANSI C standard array
size_t size );           memory allocation  
                         function.    
void _ based(void)       Using this you can write 
*_bcalloc( _segment seg, the segment that the  
size_t num, size_t size );data will be allocated 
                          from.
void _ far *_fcalloc     Allocates a block of 
(size_t num,size_t size);memory outside the
                         default data segment,
                         return far pointer.We  
                         call this function when
                         big mem model is used.  
void_near*_ncalloc       Allocates a block of 
(size_t num,size_t size);memory inside the 
                        default data segment,
                        return near pointer. 
                        This function is used 
                        when small/medium memory 
                        model specified.