Page 1 of 1

$strlen broken?

Posted: Sat Aug 30, 2003 8:32 pm
by shuttle
I have several macros that depend on $strlen for them to work properly.

at the EQ prompt I type "/echo $strlen(abcdefg)" and I get "macroquest: @strlen(abcdefg)" as output instead of 7 as I would expect.

This is with todays sourcecode. I looked at the previous code and in the $strlen section in EQLib_MacroParser.cpp looks untouched.

shuttle

Posted: Sat Aug 30, 2003 9:17 pm
by Valerian
doh, nice catch, I forgot to put it in the Parm list. will be in my next CVS commit.

Posted: Sat Aug 30, 2003 9:49 pm
by shuttle
where is the list so I can patch my code please.

shuttle

Posted: Sat Aug 30, 2003 10:04 pm
by shuttle
Found the list in EQLib_MacroParcer.h

shuttle

Posted: Sat Aug 30, 2003 11:45 pm
by Valerian
yep, add this to the Parms variable...

Code: Select all

	{"strlen(",				"parmStrLen",		NULL},

Re: $strlen broken?

Posted: Fri Jan 23, 2026 11:23 pm
by xyilla