NAME

varptr - variable pointer

SYNOPSIS

#include <basic/string.h>
#include <basic/generic.h>

short varptr(generic)
union generic *generic;

DESCRIPTION

Varptr returns the offset into the current memory segment of the variable given by generic (see generic(inc)).  The current segment is set invisibly by this function.  An offset and seg(mach) together specify an address. 

This function implements the BASIC SADD function and a version of the VARPTR function. 

SEE ALSO

generic(inc), seg(mach)
sadd(func), varptr(func)

WARNING

Operations involving absolute memory addresses ought not to be used. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber