strager wrote:
What???
int main (void)
{
int err=0;
FILE fp = fopen ("asd", "w");
while (1)
err = fwrite ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", fp);
//Some error checking with err for disk full to break out of loop
fclose (fp)
return 0;
}