File:  [WindowsNT SDKs] / mstools / samples / nwlink / testlib / dperror.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:24:35 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

/****************************************************************************\
*  dperror.c -- sample program demonstrating NWLink.
*
*       Microsoft Developer Support
*       Copyright (c) 1992, 1993 Microsoft Corporation
*
*  Demonstrates basic sockets programming with the Windows Sockets API
*  using the NWLink transport.
* 
****************************************************************************/
#include <stdio.h>
#include <winsock.h>
#include "externs.h"

/****************************************************************************
*
*    FUNCTION:  dos_net_perror( LPSTR p )
*
*    PURPOSE:   This will printf an error message to stdout showing the 
*               last error for the calling process.  This should be 
*               called IMMEDIATELY after a call has returned an error 
*               condition.
*   		    
*    ARGUMENTS:	LPSTR	=> user string to print first
*
*	 RETURNS:   nothing
*
*\***************************************************************************/
void dos_net_perror(LPSTR p)
{
    printf(dos_net_strerror(p));
    printf("\n");

    return;
}

unix.superglobalmegacorp.com

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