enhanced nwad functions

This commit is contained in:
2012-07-02 14:21:40 +00:00
parent c60ca301c4
commit a62984d47a
12 changed files with 583 additions and 247 deletions

View File

@ -25,15 +25,18 @@
#include <qse/macros.h>
#include <qse/cmn/ipad.h>
enum qse_nwad_type_t
{
QSE_NWAD_IN4,
QSE_NWAD_IN6
};
typedef enum qse_nwad_type_t qse_nwad_type_t;
typedef struct qse_nwad_t qse_nwad_t;
struct qse_nwad_t
{
enum
{
QSE_NWAD_IN4,
QSE_NWAD_IN6
} type;
qse_nwad_type_t type;
union
{

View File

@ -214,12 +214,22 @@ qse_ssize_t qse_sio_getmbsn (
qse_size_t size
);
/**
* The qse_sio_getwcs() function reads at most @a size - 1 characters
* from the stream @a sio into the buffer @a buf. If a new line or EOF
* is encountered, it stops reading from the stream. It null-terminates
* the buffer if @a size is greater than 0. */
qse_ssize_t qse_sio_getwcs (
qse_sio_t* sio,
qse_wchar_t* buf,
qse_size_t size
);
/**
* The qse_sio_getwcsn() function reads at most @a size characters
* from the stream @a sio into the buffer @a buf. If a new line or EOF
* is encountered, it stops reading from the stream.
*/
qse_ssize_t qse_sio_getwcsn (
qse_sio_t* sio,
qse_wchar_t* buf,