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() allocated size of a character string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
_parcsiz()         Allocated size of a character string


Syntax Usage:  #include     "extend.h"

               int          _parcsiz(order [,index])

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

Description:   _parcsiz() returns the number of bytes in memory
               allocated for the specified string including the null
               terminator.  Note that _parsize() returns zero for
               constants, e.g., DO <process> WITH "ABC".  Note also that
               assigning a value that exceeds this size will write over
               other memory area.  (passed by reference using the "@"
               symbol)


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

   In Clipper:

      string = "DAVE"

      ? UDF(string)             && Result: 0
      ? UDF(@string)            && Result: 5


   In C:

      #include "extend.h"

      CLIPPER udf()
      {

        _retni(_parcsiz(1));

      }


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