Hello,
Can sombody explain this to me. How come SIZEOF returns 80 inside
PBMAIN but returns 0 in the test function. This really has me boggled!
I was under the impression that SIZEOF would always return the size
of the ASCIIZ.
------------------
Cheers
Can sombody explain this to me. How come SIZEOF returns 80 inside
PBMAIN but returns 0 in the test function. This really has me boggled!
I was under the impression that SIZEOF would always return the size
of the ASCIIZ.
Code:
#compile exe function Test(Buffer as asciiz) as long msgbox format$(sizeof(Buffer)) end function function pbmain as long local mark as asciiz * 80 mark = "mark" msgbox format$(sizeof(mark)) test mark end function
Cheers
Comment