Crawled Document Text Preview (Page 1 Excerpt)
[Page 1] Contents i C Programming: Just the FAQs C PROGRAMMING: JUST THE FAQS Paul S. R. Chisholm David Hanley Michael Jones Michael Lindner Lloyd Work 201 West 103rd Street Indianapolis, Indiana 46290 [Page 2] C Programming: Just the FAQs ii Copyright © 1995 by Sams Publishing FIRST EDITION All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. For information, address Sams Publishing, 201 W. 103rd St., Indianapolis, IN 46290. International Standard Book Number: 0-672-30561-5 Library of Congress Catalog Card Number: 94-66635 98 97 96 95 4 3 2 1 Interpretation of the printing code: the rightmost double-digit number is the year of the book’s printing; the rightmost single-digit, the number of the book’s printing. For example, a printing code of 95-1 shows that the first printing of the book occurred in 1995. Composed in AGaramond and MCPdigital by Macmillan Computer Publishing Printed in the United States of America Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. [Page 3] Contents iii Publisher Richard K. Swadley Acquisitions Manager Greg Wiegand Development Manager Dean Miller Managing Editor Cindy Morrow Acquisitions Editor Chris Denny Development Editor Brad Jones Production Editor Cheri Clark Editorial Coordinator Bill Whitmer Editorial Assistants Carol Ackerman Sharon Cox Lynette Quinn Technical Reviewer Greg Guntle Marketing Manager Gregg Bushyeager Assistant Marketing Manager Michelle Milner Cover Designer Tim Amrhein Book Designer Alyssa Yesh Vice President of Manufacturing and Production Jeff Valler Manufacturing Coordinator Paul Gilchrist Imprint Manager Kelly Dobbs Team Supervisor Katy Bodenmiller Support Services Manager Juli Cook Support Services Supervisor Mary Beth Wakefield Production Analysts Angela Bannan Dennis Clay Hager Bobbi Satterfield Page Layout Carol Bowers Charlotte Clapp Mary Ann Cosby Aleata Howard Louisa Klucznik Casey Price Jill Tompkins Mark Walche Dennis Wesner Proofreading Georgiana Briggs Mona Brown Michael Brumitt Donna Harbin Michael Henry Kevin Laseau Donna Martin Indexer Cheryl Dietsch Greg Eldred [Page 4] C Programming: Just the FAQs iv Overview Introduction ....................................................................................... xxix I The C Language ..................................................................................... 1 II Variables and Data Storage ................................................................... 15 III Sorting and Searching Data .................................................................. 31 IV Data Files ............................................................................................. 63 V Working with the Preprocessor ............................................................ 87 VI Working with Strings ......................................................................... 115 VII Pointers and Memory Allocation ........................................................ 131 VIII Functions ........................................................................................... 159 IX Arrays ................................................................................................. 175 X Bits and Bytes ..................................................................................... 189 XI Debugging ......................................................................................... 197 XII