Lines Matching defs:amt
237 size_t pos, amt, i;
242 amt = len - pos;
243 if (amt > sizeof(buf) / 2) {
244 amt = sizeof(buf) / 2;
246 if (savefile_bintextread(sf, buf, amt*2)) {
249 for (i=0; i<amt; i++) {
269 size_t pos, amt;
275 amt = BINTEXT_WIDTH - sf->bintextpos;
276 if (amt > len - pos) {
277 amt = len - pos;
279 if (savefile_rawwrite(sf, udata + pos, amt)) {
282 pos += amt;
283 sf->bintextpos += amt;
397 size_t pos, amt, i;
403 amt = len - pos;
404 if (amt > sizeof(buf)) {
405 amt = sizeof(buf);
407 if (savefile_binread(sf, buf, amt)) {
410 for (i=0; i<amt; i++) {
415 pos += amt;
429 size_t pos, amt, i;
435 amt = len - pos;
436 if (amt > sizeof(buf)) {
437 amt = sizeof(buf);
439 for (i=0; i<amt; i++) {
444 if (savefile_binwrite(sf, buf, amt)) {
447 pos += amt;