File:  [WindowsNT SDKs] / mstools / samples / rpc / adder1 / procs.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:20:01 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-oct-1991, ntsdk-dec-1991, HEAD
Microsoft Windows NT Pre-Release 11-19-1991

/****************************************************************************
                       Microsoft RPC Version 1.0 Alpha
                                October 1991
                               Adder1 Example

    FILE:       adder1\procs.c
    PURPOSE:    Remote procedures that are linked with the server
                side of RPC distributed application adder1
    FUNCTIONS:  AdderProc1() - adds two short integers,
                returns a short integer
    COMMENTS:
    This distributed application adds two short integers and
    returns the result.  This application manages its own
    connection to the server. It uses the binding handle
    hRpcAdder, defined in the file adder1.h.
****************************************************************************/
#include <stdio.h>    // printf

short AdderProc1(short i1, short i2)
{
    printf("%hu + %hu = %hu\n", i1, i2, i1 + i2);
    return(i1 + i2);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.