![]() ![]() This reference section describes each of the library functions available in CodeVisionAVR. With the header file included, the functions concerned with standard I/O such as the printf function (referred to in earlier chapters) are made available to the programmer. If programmers wish to use some of these functions, they would put the following statement into the beginning of their code: #include For example, the function prototypes for the group of routines concerned with the standard input and output routines are contained in a header file called stdio.h. This grouping avoids having to include a whole host of unneeded func- tion prototypes in every program. There are many library functions available in most C compilers, gathered into groups by function. The function prototypes are contained in a set of header files that the programmer “includes” in the code. This information is made clear by the prototype for the function. In order to make use of the functions, the programmer needs to know what parameters the function is expecting to be passed to it and the nature of any values returned from it. ![]() As with all C functions, you call the library functions from your code by using the function name and either passing values to the function or receiving the values returned by the function. These are routines that accomplish many of the more common tasks that face a C programmer. INTRODUCTION Much of the programming power and convenience of the C language lies in its built- in, or library, functions. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |