Page 9 - C-Language
P. 9

Get lines from a file using getline()                                                            137

            Input file example.txt                                                                           138

            Output                                                                                           138

            Example implementation of getline()                                                              139

            Open and write to a binary file                                                                  140

            fscanf()                                                                                         142

            Read lines from a file                                                                           143

        Chapter 23: Formatted Input/Output                                                                  145

          Examples                                                                                           145

            Printing the Value of a Pointer to an Object                                                     145

            Using <inttypes.h> and uintptr_t                                                                 145

          Pre-Standard History:                                                                              146

            Printing the Difference of the Values of two Pointers to an Object                               146

            Conversion Specifiers for printing                                                               147
            The printf() Function                                                                            148

            Length modifiers                                                                                 149

            Printing format flags                                                                            150

        Chapter 24: Function Parameters                                                                     152

          Remarks                                                                                            152

          Examples                                                                                           152

            Using pointer parameters to return multiple values                                               152

            Passing in Arrays to Functions                                                                   152

          See also                                                                                           153

            Parameters are passed by value                                                                   153

            Order of function parameter execution                                                            154

            Example of function returning struct containing values with error codes                          154

        Chapter 25: Function Pointers                                                                       156

          Introduction                                                                                       156

          Syntax                                                                                             156

          Examples                                                                                           156

            Assigning a Function Pointer                                                                     156

            Returning Function Pointers from a Function                                                      157
   4   5   6   7   8   9   10   11   12   13   14