home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _ANSWERS_ / 11.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-19  |  549KB  |  2550x3300
Labels: book | reckoner | sky
OCR: Chapter char *current pas, *lastpos, pri intf "Enter line of text. An fgets instr ing BUF SIZE, stdin ins t r ing[strlen instring 0 lastpos instri bu s\"\n" while cur rent tpos strchr( lastpos, NULL ing current tpos pr intf( n las tpos lastpos curren tpos, while lastpos -pos+ printf( $s\n lastpos return Chapter 34891 -4-3-2 Only the function showt absinline {} needed to be changed. The use of the inue statement Is no longer necessary void showtabs inli ine vO JLL int iochar; whil iochar get tchar iochar printf There are many ways to accomplish this. One presented here The only change to main was :.. change the string in the third call to pri .ntf nt nThat was the second part the line. \n" The function readtosent inel could be changed as follows: void readtosent inel( void int iochar; while ...