Clean up warnings for round() function declaration.
[iverilog.git] / libveriuser / nump.c
blob61ac6d803c23f414ab82a0a22895685e446f308f
1 /* vi:sw=6
2 * Copyright (c) 2002 Michael Ruff (mruff at chiaro.com)
4 * This source code is free software; you can redistribute it
5 * and/or modify it in source code form under the terms of the GNU
6 * General Public License as published by the Free Software
7 * Foundation; either version 2 of the License, or (at your option)
8 * any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 #ifdef HAVE_CVS_IDENT
20 #ident "$Id: nump.c,v 1.3 2003/05/28 03:38:05 steve Exp $"
21 #endif
23 #include <vpi_user.h>
24 #include <stdio.h>
27 * tf_nump implemented using VPI interface
30 int tf_inump(void *obj)
32 vpiHandle sys_h, sys_i;
33 int cnt;
35 sys_h = (vpiHandle)obj;
36 sys_i = vpi_iterate(vpiArgument, sys_h);
38 /* count number of args */
39 for (cnt = 0; sys_i && vpi_scan(sys_i); cnt++);
41 return cnt;
44 int tf_nump(void)
46 vpiHandle sys_h = vpi_handle(vpiSysTfCall, 0 /* NULL */);
47 return tf_inump(sys_h);
51 * $Log: nump.c,v $
52 * Revision 1.3 2003/05/28 03:38:05 steve
53 * Implement tf_inump
55 * Revision 1.2 2002/08/12 01:35:02 steve
56 * conditional ident string using autoconfig.
58 * Revision 1.1 2002/05/30 02:12:17 steve
59 * Add tf_nump from mruff.