ACCTG 1 Lecture Notes - Lecture 21: Include Directive, The C Programming Language, Memory Address
Document Summary
The c programming language has been associated with operating systems programming since its beginning [kernighan and ritchie]. The bond between c and unix is very tight, c was invented to write unix. C is a powerfull tool well suited to embedded systems. The generally reccommended structure goes something like this :- #include const int life = 42; int main(int argc, char *argv[] ) printf("hello world\n"); The include directive copies in the specified header file. This file contains function declarations constant definitions needed for using the related library. The project context will set up the approprate directories for local header files. Constants ways of defining defines often seen in older programs, provides a textual substitution for the constant. C needs functions and variables to be declared before their use. This is the role the header files provide, declaring functions from their libraries. void *memcpy(void *dest, const void *src, size_t n);