#include <stdio.h>
Go to the source code of this file.
|
#define | PLAT_snprintf(buffer, count,...) _snprintf_s(buffer,count,count,__VA_ARGS__); |
|
|
errno_t | PLAT_strncpy (char *dest, const char *src, rsize_t max) |
|
uint16_t | PLAT_htons (uint16_t s) |
| Converts the unsigned short integer hostshort from host byte order to network byte order. More...
|
|
uint32_t | PLAT_htonl (uint32_t l) |
| Converts the unsigned integer hostlong from host byte order to network byte order. More...
|
|
uint16_t | PLAT_ntohs (uint16_t s) |
| Converts the unsigned short integer netshort from network byte order to host byte order. More...
|
|
uint32_t | PLAT_ntohl (uint32_t l) |
| Converts the unsigned integer netlong from network byte order to host byte order. More...
|
|
#define PLAT_snprintf |
( |
|
buffer, |
|
|
|
count, |
|
|
|
... |
|
) |
| _snprintf_s(buffer,count,count,__VA_ARGS__); |
uint32_t PLAT_htonl |
( |
uint32_t |
l | ) |
|
Converts the unsigned integer hostlong from host byte order to network byte order.
- Parameters
-
- Returns
- value in network byte order
uint16_t PLAT_htons |
( |
uint16_t |
s | ) |
|
Converts the unsigned short integer hostshort from host byte order to network byte order.
- Parameters
-
- Returns
- short value in network order
uint32_t PLAT_ntohl |
( |
uint32_t |
l | ) |
|
Converts the unsigned integer netlong from network byte order to host byte order.
- Parameters
-
l | Long value in network order |
- Returns
- Long value on host byte order
uint16_t PLAT_ntohs |
( |
uint16_t |
s | ) |
|
Converts the unsigned short integer netshort from network byte order to host byte order.
- Parameters
-
s | Network order short integer |
- Returns
- host order value
errno_t PLAT_strncpy |
( |
char * |
dest, |
|
|
const char * |
src, |
|
|
rsize_t |
max |
|
) |
| |