| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/usr/src/debug/cygwin-3.5.1-1/newlib/libc/stdio/ |
Upload File : |
#include <newlib.h>
#ifdef _FVWRITE_IN_STREAMIO
#include <reent.h>
#include <stdio.h>
#include <wchar.h>
#include "fvwrite.h"
/*
* Flush out all the vectors defined by the given uio,
* then reset it so that it can be reused.
*/
int
__swprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
register int err = 0;
struct __siov *iov;
wchar_t *p;
int i, len;
if (uio->uio_resid == 0) {
uio->uio_iovcnt = 0;
return (0);
}
iov = uio->uio_iov;
for (; uio->uio_resid != 0;
uio->uio_resid -= len, iov++) {
p = (wchar_t *) iov->iov_base;
len = iov->iov_len;
for (i = 0; i < len; i++) {
if (_fputwc_r (ptr, p[i], fp) == WEOF) {
err = -1;
goto out;
}
}
}
out:
uio->uio_resid = 0;
uio->uio_iovcnt = 0;
return (err);
}
#endif