Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>__parcsiz return allocated size of a character string</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
__PARCSIZ          Return allocated size of a character string


Syntax Usage:  . To obtain size of memory allocated for a string
                 parameter:

                   mov   ax,<ORDER>
                   push  ax
                   call  __PARCSIZ
                   add   sp, 2

               . To obtain size of memory allocated for a string element
                 from an array parameter:

                   mov   ax, <ORDER>
                   mov   bx, <INDEX>
                   push  bx
                   push  ax
                   call  __PARCSIZ
                   add   sp, 4

Arguments:     <ORDER> is the placement order in the parameter list.
               <INDEX> is the index of the array element to be accessed.

Description:   __PARCSIZ returns the number of bytes in memory allocated
               for the specified string, including the null terminator,
               in AX.  Note that __PARCSIZ returns zero for constants,
               e.g., DO <process> WITH "ABC".  The parameter must be
               passed by reference with the "@" symbol.

Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson