- Main Page
- Classes
- Files
- Related Pages

# include/nmxp_win.h File Reference

Function for Windows OS. More...

Go to the source code of this file.

## Defines
#define | NMXP_WIN_H 1
## Functions
void | nmxp_initWinsock ()
| Winsock initialization.
char * | WSAGetLastErrorMessage (int nErrorID)
| A function similar in spirit to Unix's perror().

## Detailed Description

Function for Windows OS.

Author: Matteo Quintiliani Istituto Nazionale di Geofisica e Vulcanologia - Italy quintiliani@ingv.it

Id

## Define Documentation

#define NMXP_WIN_H 1

## Function Documentation

void nmxp_initWinsock | ( |  | ) |

Winsock initialization.

char* WSAGetLastErrorMessage | ( | int | nErrorID | ) |

A function similar in spirit to Unix's perror().

This function returns a pointer to an internal static buffer, so you must copy the data from this function before you call it again. It follows that this function is also not thread-safe.

Parameters:

  | nErrorID |

Returns:
  Return a pointer to a static string which contains error description.