Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> bliptrdec()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 BLIPTRDEC()
------------------------------------------------------------------------------
 Purpose:
 Huge pointer decrement.

 Syntax:
 LPVOID BLIPTRDEC(LPPointer, niValue)

 Parameters:
 lpPointer  Memory pointer to decrement.
 niValue    Value by which to decrement pointer.

 Returns:
 Decremented pointer.

 Description:
 The BLIPTRDEC() function (decrement huge pointer) is the inverse of the
 BLIPTRINC() function - for more information on the use of these functions
 please see the entry for BLIPTRINC() below.

 Example:
 For example if BLOCK is some complex type then :                            
                                                                             
 1  memptr = (BLOCK huge *) halloc ((long) BLKMAX,sizeof (BLOCK));           
 2  if (memptr)                                                              
 3     {                                                                     
 4     tmpptr = memptr;                                                      
 5     for (i = 0; i < BLKMAX; i++)                                          
 6        {                                                                  
 7        ...               /* Some                                          
 operation */                                                                
 8        tmpptr--;         /* Point to previous                             
 block */                                                                    
 9        }                                                                  
 10    }                                                                     
                                                                             
 Line 8 can be replaced with:                                                
                                                                             
 tmpptr = BLIPTRDEC (tmpptr, (long) sizeof (BLOCK));                         

See Also: BLIPTRINC()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson