home *** CD-ROM | disk | FTP | other *** search
- %h{
- /* *
- * *
- * Copyright 1987, 1988, 1989 Netwise, Inc. *
- * All Rights Reserved *
- * This software contains information which is proprietary to and a trade *
- * secret of Netwise, Inc. It is not to be used, reproduced, or disclosed *
- * except as authorized in your license agreement. *
- * *
- * Restricted Rights Legend *
- * Use, duplication, or disclosure by the Government is subject to *
- * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in *
- * Technical Data and Computer Software clause at 252.227-7013, or the *
- * equivalent Government clause for other agencies. *
- * Contractor: Netwise, Inc., Boulder, CO 80301 USA *
- * *
- */
- %}
-
- /*
- * File: array\common\array.rpc
- *
- * This RPC file runs in the following environment:
- * NetWare RPC 1.0, NetWare 2.1 or higher, DOS 3.3
- *
- * This is the RPC Specification file for the array example.
- */
-
- /*
- * A global variable called sname is identified as the variable containing
- * process binding information. Because this variable is only
- * used for input process binding information and because no
- * output process binding information is specified, the client
- * stubs open and close connections for each remote procedure
- * call (i.e., this is a non-persistent connection).
- */
- extern server_name [bind in] sname; /* server_name is a predefined binding
- type (typedef char *server_name) */
-
- /* The following procedures use the global variable sname implicitly
- * for obtaining process binding information. The procedures add the
- * elements of vec and return the sum.
- */
-
- int
- add_vec1(
- int size, /* number of elements to add */
- int vec[size] /* array of integers */
- );
-
- /* Note that the add_vec1 procedure could also be declared as follows: */
-
- int
- add_vec2(
- int size,
- int vec[] (#0 + 1 >= size)
- );
-