Lines Matching defs:nwritten
1204 size_t nwritten = 0;
1215 if (++nwritten >= buflen) goto exit;
1573 if (F.hSize) * (short *) s = (short)nwritten;
1574 else if (F.lSize) * (long *) s = (long)nwritten;
1575 else * (int *) s = (int)nwritten;
1582 if (++nwritten >= buflen) goto exit;
1589 if (++nwritten >= buflen) goto exit;
1592 if (i > buflen - nwritten) // Make sure we don't truncate in the middle of a UTF-8 character
1593 { i = buflen - nwritten; while (i>0 && (s[i] & 0xC0) == 0x80) i--; }
1595 nwritten += i;
1596 if (nwritten >= buflen) goto exit;
1601 if (++nwritten >= buflen) goto exit;
1607 return(nwritten);