Fred K Ollinger on Thu, 20 Jun 2002 01:52:33 +0200 |
Sorry for the non-c coders. Don't want to bore you. This code will crash: bytes_read = fread(buffer, 1, MAX_BUF, source); /* second arg could be whatever you like; 1 == sizeof(char) in my world */ while(bytes_read) { fwrite(buffer, 1, bytes_read, dest); } I'm wondering why, I'm guessing that the 4th arg in bytes_read should be pointer. I'm going to test that now. I really appreciate all the help, espcially from Gabriel. This is going to work, just a little more tweaking. Fred Ollinger (follinge@sas.upenn.edu) CCN sysadmin ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|