|
|
1.1 ! root 1: /****************************************************************************\ ! 2: * dperror.c -- sample program demonstrating NWLink. ! 3: * ! 4: * Microsoft Developer Support ! 5: * Copyright (c) 1992, 1993 Microsoft Corporation ! 6: * ! 7: * Demonstrates basic sockets programming with the Windows Sockets API ! 8: * using the NWLink transport. ! 9: * ! 10: ****************************************************************************/ ! 11: #include <stdio.h> ! 12: #include <winsock.h> ! 13: #include "externs.h" ! 14: ! 15: /**************************************************************************** ! 16: * ! 17: * FUNCTION: dos_net_perror( LPSTR p ) ! 18: * ! 19: * PURPOSE: This will printf an error message to stdout showing the ! 20: * last error for the calling process. This should be ! 21: * called IMMEDIATELY after a call has returned an error ! 22: * condition. ! 23: * ! 24: * ARGUMENTS: LPSTR => user string to print first ! 25: * ! 26: * RETURNS: nothing ! 27: * ! 28: *\***************************************************************************/ ! 29: void dos_net_perror(LPSTR p) ! 30: { ! 31: printf(dos_net_strerror(p)); ! 32: printf("\n"); ! 33: ! 34: return; ! 35: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.