(int) OaSave(libname, allhier)
Write the current cell to the OpenAccess library whose name is given
in the first argument. This must exist, and be writable from Xic.
Whether the physical or electrical views are written, or both, is
determined by the value of the OaUseOnly variable. If the value
is ``1'' or starts with `p' or `P', only the physical (layout) views
are written. If the value is ``2'' or starts with `e' or `E', only
the electrical (schematic and symbol) views are written. If anything
else or not set, both physical and electrical views are written. The
second argument is a boolean that if true (nonzero) indicates that the
entire cell hierarchy under the current cell should be saved.
Otherwise, only the current cell is saved.
The actual view names used are given in the OaDefLayoutView,
OaDefSchematicView, and OaDefSymbolView variables, or
default to ``layout'', ``schematic'', and ``symbol''.