xref: /onnv-gate/usr/src/lib/krb5/dyn/dyn_initzero.c (revision 0:68f95e015346)
1*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
2*0Sstevel@tonic-gate 
3*0Sstevel@tonic-gate /*
4*0Sstevel@tonic-gate  * This file is part of libdyn.a, the C Dynamic Object library.  It
5*0Sstevel@tonic-gate  * contains the source code for the function DynInitZero().
6*0Sstevel@tonic-gate  *
7*0Sstevel@tonic-gate  * There are no restrictions on this code; however, if you make any
8*0Sstevel@tonic-gate  * changes, I request that you document them so that I do not get
9*0Sstevel@tonic-gate  * credit or blame for your modifications.
10*0Sstevel@tonic-gate  *
11*0Sstevel@tonic-gate  * Written by Barr3y Jaspan, Student Information Processing Board (SIPB)
12*0Sstevel@tonic-gate  * and MIT-Project Athena, 1989.
13*0Sstevel@tonic-gate  */
14*0Sstevel@tonic-gate 
15*0Sstevel@tonic-gate #include <stdio.h>
16*0Sstevel@tonic-gate 
17*0Sstevel@tonic-gate #include "dynP.h"
18*0Sstevel@tonic-gate 
DynInitzero(obj,state)19*0Sstevel@tonic-gate int DynInitzero(obj, state)
20*0Sstevel@tonic-gate    DynObjectP obj;
21*0Sstevel@tonic-gate    int state;
22*0Sstevel@tonic-gate {
23*0Sstevel@tonic-gate      obj->initzero = state;
24*0Sstevel@tonic-gate 
25*0Sstevel@tonic-gate      if (obj->debug)
26*0Sstevel@tonic-gate 	  fprintf(stderr, "dyn: initzero: initzero set to %d.\n", state);
27*0Sstevel@tonic-gate      return DYN_OK;
28*0Sstevel@tonic-gate }
29