Page 21 - C-Language
P. 21

strncpy()                                                                                          350
          Convert Strings to Number: atoi(), atof() (dangerous, don't use them)                              350


          string formatted data read/write                                                                   351

          Safely convert Strings to Number: strtoX functions                                                 352

        Chapter 53: Structs                                                                                 354

          Introduction                                                                                       354

          Examples                                                                                           354

            Simple data structures                                                                           354

            Typedef Structs                                                                                  354

            Pointers to structs                                                                              356

            Flexible Array Members                                                                           358

          Type Declaration                                                                                   358

          Effects on Size and Padding                                                                        358

          Usage                                                                                              359

            The 'struct hack'                                                                                359

          Compatibility                                                                                      360

            Passing structs to functions                                                                     361
            Object-based programming using structs                                                           362


        Chapter 54: Structure Padding and Packing                                                           365

          Introduction                                                                                       365

          Remarks                                                                                            365

          Examples                                                                                           365

            Packing structures                                                                               365

        Structure packing                                                                                   365

          Structure padding                                                                                  366

        Chapter 55: Testing frameworks                                                                      368

          Introduction                                                                                       368

          Remarks                                                                                            368

          Examples                                                                                           368

            CppUTest                                                                                         368

            Unity Test Framework                                                                             369
   16   17   18   19   20   21   22   23   24   25   26