home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_11 / 642.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  531KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: 642 Chapter 11 Library and Preprocessor Facilities void print( struct node *ptr while ( ptr->next NULL } printf( \n" ptr->wora ptr ptr ->next printf( '.u\sg. ptr- >word node Note while that loop auxi liary moves pointers through are the not list and necessary displays The the parameter string ptr stored 15 in used each T move through the list Since the parameter is passed by value the changes to ptr in this function will not affect the value of the actual parameter in the rest of the program Now that we know what the utility functions do we will study the driver func tion main) in Example 11-14 to see how 1f all works together Example 11-14: linklist.c: function mainO iinklist.c Synopsis Echoes its input t c its output, but keeps the input linked ist Obj ective ites building linked list of ...