Lines Matching defs:amt
236 size_t pos, amt, i;
241 amt = len - pos;
242 if (amt > sizeof(buf) / 2) {
243 amt = sizeof(buf) / 2;
245 if (savefile_bintextread(sf, buf, amt*2)) {
248 for (i=0; i<amt; i++) {
268 size_t pos, amt;
274 amt = BINTEXT_WIDTH - sf->bintextpos;
275 if (amt > len - pos) {
276 amt = len - pos;
278 if (savefile_rawwrite(sf, udata + pos, amt)) {
281 pos += amt;
282 sf->bintextpos += amt;
396 size_t pos, amt, i;
402 amt = len - pos;
403 if (amt > sizeof(buf)) {
404 amt = sizeof(buf);
406 if (savefile_binread(sf, buf, amt)) {
409 for (i=0; i<amt; i++) {
414 pos += amt;
428 size_t pos, amt, i;
434 amt = len - pos;
435 if (amt > sizeof(buf)) {
436 amt = sizeof(buf);
438 for (i=0; i<amt; i++) {
443 if (savefile_binwrite(sf, buf, amt)) {
446 pos += amt;