archie/prospero/lib/pfs/obother.c

22 lines
519 B
C
Raw Permalink Normal View History

2024-05-27 16:13:40 +02:00
/* Other routines - written by Mitra - that deal with P_OBJECT's
*
* Steve - feel free to move anywhere you want
*/
#include <pfs.h>
/* Syntactically same as atput in goph_gw_dsdb.c */
/* Note caller must pass last arg as (char *)0 */
/* Note an arg of *char *)1 will force next arg to be pointed at rather
than copied */
void ob_atput(P_OBJECT po, char *name, ...)
{
va_list ap;
PATTRIB at;
va_start(ap, name);
at = vatbuild(name, ap);
APPEND_ITEM(at, po->attributes);
va_end(ap);
}