Page 8 - C-Language
P. 8

Examples                                                                                           116
            Calling a function from another C file                                                           116

            Using a Global Variable                                                                          117

            Using Global Constants                                                                           118

            Introduction                                                                                     120

            Typedef                                                                                          123

            Using the right-left or spiral rule to decipher C declaration                                    123

        Chapter 20: Enumerations                                                                            128

          Remarks                                                                                            128

          Examples                                                                                           128

            Simple Enumeration                                                                               128

          Example 1                                                                                          128

          Example 2                                                                                          129

            Typedef enum                                                                                     129

            Enumeration with duplicate value                                                                 131

            enumeration constant without typename                                                            131

        Chapter 21: Error handling                                                                          132

          Syntax                                                                                             132

          Remarks                                                                                            132

          Examples                                                                                           132

            errno                                                                                            132

            strerror                                                                                         132

            perror                                                                                           133

        Chapter 22: Files and I/O streams                                                                   134

          Syntax                                                                                             134

          Parameters                                                                                         134

          Remarks                                                                                            134

          Mode strings:                                                                                      134

          Examples                                                                                           135

            Open and write to file                                                                           135

            fprintf                                                                                          136

            Run process                                                                                      136
   3   4   5   6   7   8   9   10   11   12   13