unsigned Memory::put(char c)
{
check_access(M_WRITE);
+
+ if(pos==end)
+ return 0;
+
*pos++ = c;
return 1;
}
throw invalid_argument("Memory::seek");
if(new_pos<begin || new_pos>end)
- throw out_of_range("Memory::seek");
+ throw bad_seek(off, type);
pos = new_pos;
+ eof_flag = false;
return pos-begin;
}