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>__parclen return length of character string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
__PARCLEN          Return length of character string


Syntax Usage:  . To obtain length of a string parameter:

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

               . To obtain length of a string element from an array
                 parameter:

                   mov   ax, <ORDER>
                   mov   bx, <INDEX>
                   push  bx
                   push  ax
                   call  __PARCLEN
                   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:   __PARCLEN returns the length of a given string in AX.  It
               is used primarily with respect to CHR(0).  This has two
               uses:

               . Check for the length of a string with embedded CHR(0)s
                 in it.

               . Get the length of a string without counting the null
                 terminator.

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