1 /* -- translated by f2c (version 20100827).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11 */
12
13 #include "libtinyf2c.h"
14
15 /* ----------------------------------------------------------------------- */
16 /* Copyright (C) 2000-2004 GFD Dennou Club. All rights reserved. */
17 /* ----------------------------------------------------------------------- */
sgtnzu_(integer * n,real * upx,real * upy,integer * itpat)18 /* Subroutine */ int sgtnzu_(integer *n, real *upx, real *upy, integer *itpat)
19 {
20 extern /* Subroutine */ int msgdmp_(char *, char *, char *, ftnlen,
21 ftnlen, ftnlen), sztncl_(void), sztnop_(integer *), sztnzu_(
22 integer *, real *, real *);
23
24 /* Parameter adjustments */
25 --upy;
26 --upx;
27
28 /* Function Body */
29 if (*n < 3) {
30 msgdmp_("E", "SGTNZU", "NUMBER OF POINTS IS LESS THAN 3.", (ftnlen)1,
31 (ftnlen)6, (ftnlen)32);
32 }
33 if (*itpat == 0) {
34 msgdmp_("M", "SGTNZU", "TONE PAT. INDEX IS 0 / DO NOTHING.", (ftnlen)
35 1, (ftnlen)6, (ftnlen)34);
36 return 0;
37 }
38 if (*itpat < 0) {
39 msgdmp_("E", "SGTNZU", "TONE PAT. INDEX IS LESS THAN 0.", (ftnlen)1, (
40 ftnlen)6, (ftnlen)31);
41 }
42 sztnop_(itpat);
43 sztnzu_(n, &upx[1], &upy[1]);
44 sztncl_();
45 return 0;
46 } /* sgtnzu_ */
47
48