- char* readLine()
- {
- int n = 0;
- int sz = 1024;
- {
- n++;
- if(n == (sz - 1)) {
- // extend buffer
- sz += 1024;
- buffer = newbuffer;
- }
- }
- if(n < 1) ExitProcess(0);
- buffer[n] = 0; // strip \n from it
- return buffer;
- }
C ReadLine
Posted by Anonymous on Thu 28th Apr 2011 18:40
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.