Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - pickstrlen() return length of string list item http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 pickstrlen()        Return length of string list item
------------------------------------------------------------------------------
 Declaration
   pick.hdr

 Syntax
   func uint pickstrlen extern
   param value _SLIST pList, ;
         value uint   uItem

 Arguments
   pList is a list pointer.
   uItem is a list item index.

 Return
   The length of the specified item in bytes.

 Description
   The pickstrlen() function retrieves the length of a string list item.

   This function can only be used with string lists, but not with generic
   lists that contain non-character data.

 Example
   #define EXAMPLE_LIST
   #include example.hdr

   proc Test_pickstrlen
   vardef
      _SLIST pList
      uint   n
   enddef
   pList := ExampleList()
   ?
   ? "Item                Length"
   for n := 1 to pickcount( pList )
      ? pickstr( pList, n ):15, pickstrlen( pList, n )
   next
   pickclear( pList )
   endproc

   proc main
   Test_pickstrlen()
   endproc

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