Thread View: net.bugs.v7
1 messages
1 total messages
Started by utzoohenry
Thu, 13 Jan 1983 22:20
split(1) vs big split sizes
Author: utzoohenry
Date: Thu, 13 Jan 1983 22:20
Date: Thu, 13 Jan 1983 22:20
20 lines
796 bytes
796 bytes
Split(1) as distributed does odd things if the line count given as an option exceeds 32767. Guess why. The fix is roughly as follows (the line numbers may not exactly match those of the distributed one): 3c7 < unsigned count = 1000; --- > long count = 1000L; 14a19 > register long nbytes; 15a21 > extern long atol(); 35c41 < count = atoi(argv[i]+1); --- > count = atol(argv[i]+1); 56c62 < for(i=0; i<count; i++) --- > for(nbytes=0L; nbytes<count; nbytes++)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads