SIZESTR          Return string length                         Macro Directive

name SIZESTR string ; Ideal or MASM51 mode

name is set to the numeric value of the length of string. A null
string has a length of zero.


Example:

ideal
macro make_pascal_string sym_name:REQ, ps_text:=<"">
local @@strlen
@@strlen SIZESTR <ps_text>
&sym_name db @@strlen - 2, ps_text
endm

make_pascal_string <msg_hello>,<"Hello">