DOKK / manpages / debian 10 / alliance / getphfig.3.en
GETPHFIG(3) MBK PHYSICAL UTILITY FUNCTIONS GETPHFIG(3)

getphfig - give back a pointer to a phfig

See the file buster/alliance/alc_origin.1.en.gz.

#include "mph.h"
phfig_list ∗getphfig(figname, mode)
char ∗figname;
char mode;

Name of the figure to be created mode Demanded mode for the figure

getphfig returns a pointer to the figure called figname with the warranty that the expected information is present in memory.
If mode is 'A' then the figure has all its lists filled, else the figure may either be complete or interface only.
This function allows to completly mask disk access for applications programs. If the figure is in memory, with the specified mode, then the function returns the appropriate pointer. Else, the function performs a call to the loadphfig(3) and returns a pointer to the loaded figure.

getphfig returns a pointer to the wanted figure.

getphfig cannot give any errors, but the subsequent calls it performs to parsers do. So the source of trouble may be the call to getphfig. See loadphfig(3) for details.

#include "mph.h"
phfig_list ∗na2_y()
{
	/∗ find in memory or load from disk na2_y ∗/
	return getphfig("na2_y", 'A');
}

mbk(1), phfig(3), addphfig(3), delphfig(3), loadphfig(3), savephfig(3), flattenphfig(3), rflattenphfig(3).

See the file buster/alliance/alc_bug_report.1.en.gz.

October 1, 1997 ASIM/LIP6