Hi Charles, Mike,
at least I learned this little trick with o2scm.o2bas:
uses corewin
function fibo(quad a,b,x) as quad
if x=0 then return a else return fibo(b,a+b,x-1)
end function
quad x = fibo(1,1,91)
' print x
char s[30]
sprintf(s, "%I64d", x)
print s
Btw: MSDN states for _strlwr, etc:
Return Value
Each of these functions returns a pointer to the converted string. Because the modification is done in place, the pointer returned is the same as the pointer passed as the input argument. No return value is reserved to indicate an error.
...
If str is a NULL pointer, the invalid parameter handler is invoked, as described in Parameter Validation. ...
Does _strlwr create side effects in o2scm.o2bas? If I use the function unprototyped I get an error e.g.: unbound variable 35467044
Roland