8777 krb5/plugins/kdb: variable set but not used
[unleashed.git] / usr / src / lib / krb5 / dyn / dyn_size.c
blobc94b775860e09e31b69b97e8ee500c8879267497
1 #pragma ident "%Z%%M% %I% %E% SMI"
3 /*
4 * This file is part of libdyn.a, the C Dynamic Object library. It
5 * contains the source code for the function DynSize().
7 * There are no restrictions on this code; however, if you make any
8 * changes, I request that you document them so that I do not get
9 * credit or blame for your modifications.
11 * Written by Barr3y Jaspan, Student Information Processing Board (SIPB)
12 * and MIT-Project Athena, 1989.
15 #include <stdio.h>
17 #include "dynP.h"
19 int DynSize(obj)
20 DynObjectP obj;
22 if (obj->debug)
23 fprintf(stderr, "dyn: size: returning size %d.\n", obj->num_el);
25 return obj->num_el;
28 int DynCapacity(obj)
29 DynObjectP obj;
31 if (obj->debug)
32 fprintf(stderr, "dyn: capacity: returning cap of %d.\n", obj->size);
34 return obj->size;