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() length of character string</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
_parclen()         Length of character string


Syntax Usage:  #include     "extend.h"

               int          _parclen(order [,index])

               int          order;  Placement in actual parameter list
               int          index;  Array element index

Description:   _parclen() returns the length of a given string.  It is
               used primarily with respect to CHR(0) and has the
               following 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.

----------------------------------- Example --------------------------------

   In Clipper:

    string = "DAVE"

    ? C_udf(string)             && Result: 4
    ? C_udf(@string)            && Result: 4


   In C:

    #include "extend.h"

    CLIPPER c_udf()
    {

            _retni(_parclen(1));

    }

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