|
NAMEaddphref - create a physical reference See the file man1/alc_origin.1. SYNOPSIS#include "mph.h" phref_list ∗addphref(ptfig, type, name, x, y) phfig_list ∗ptfig; char ∗type; char ∗name; long x, y; PARAMETERSDESCRIPTIONaddphref creates a new reference whose center is at the
given coordinates, and adds it to the list of references pointed to by
ptfig->PHREF. The new reference is added in front of the list, and
becomes itself the list head.
For details on the structure, see phref(3). RETURN VALUEaddphref returns a pointer to the newly created reference. EXAMPLE
#include "mph.h"
phref_list ∗ref_dup(pfd, pfs) /∗ duplicate refs ∗/
phfig_list ∗pfd, ∗pfs;
{
phref_list ∗pr;
for (pr = pfs->phref; pr != NULL; pr = pr->NEXT)
addphref(pfd, pr->FIGNAME, pr->NAME, pr->XREF, pr->YREF);
return pfd->PHREF;
}
SEE ALSOmbk(1), phfig(3), phref(3), getphref(3), delphref(3). See the file man1/alc_bug_report.1.
|