| Path: | src/anvartostring.f90 |
| Last Update: | Wed Jul 20 18:22:22 JST 2005 |
| result : | character(string) |
| var : | type(AN_VARIABLE), intent(in) |
function ANVarToString(var) result(result)
implicit none
character(string):: result
type(AN_VARIABLE), intent(in):: var
type(an_variable_entry):: ent
if (vtable_lookup(var, ent) /= 0) then
result = cprintf("AN_VARIABLE(bad id %d)", i=(/var%id/))
else
result = cprintf("AN_VARIABLE(file=%d, var=%d, dim=%d)", i=(/ent%fileid, ent%varid, ent%dimid/))
endif
end function