ANSI C: a Lexical Guide Describes the American National Standards Institute (ANSI) Standard for the C Programming Language

ANSI C: a Lexical Guide Describes the American National Standards Institute (ANSI) Standard for the C Programming Language

Table of Contents Introduction ................................................... 1 C and the Standard. 1 The X3J11 Committee . 1 Differences from Kernighan & Ritchie C. 2 The Standard and This Manual. 4 The Lexicon................................................... 5 Example . Give an example of the Lexicon format . 7 ! . Logical negation operator . 8 != . Inequality operator . 8 ´’ . String literal character . 8 # . String-ize operator . 9 ## . Token-pasting operator . 10 #define . Define an identifier as a macro . 11 #elif . Include code conditionally. 13 #else . Include code conditionally. 13 #endif . End conditional inclusion of code . 14 #error . Error directive . 14 #if . Include code conditionally. 14 #ifdef . Include code conditionally. 15 #ifndef . Include code conditionally. 16 #include . Read another file and include it . 16 abort(). End program immediately . 1 abs(). Compute the absolute value of an integer. 2 acos() . Calculate inverse cosine . 2 additive operators. 3 address . 3 aggregate types . 3 alias.................................................. 3 alignment . 4 argc.................................................. 5 argument. 5 argv.................................................. 5 arithmetic types . 6 array declarators . 6 array types . 7 ASCII.................................................. 7 asctime() . Convert broken-down time to text . 10 as if rule . 11 asin() . Calculate inverse sine . 11 assert() . Check assertion at run time. 12 assert.h. Header for assertions. 13 assignment operators . 13 atan() . Calculate inverse tangent . 14 atan2() . Calculate inverse tangent . 14 atexit() . Register a function to be performed at exit . 15 atof() . Convert string to floating-point number. 16 atoi(). Convert string to integer . 16 atol(). Convert string to long integer . 17 auto . Automatic storage duration . 17 i ii Contents basic types . 18 behavior . 18 bit.................................................. 19 bit-fields . 19 bitwise operators . 20 block.................................................. 22 break . Exit unconditionally from loop or switch . 22 broken-down time . 23 bsearch() . Search an array . 23 buffer . 25 BUFSIZ . Default size of buffer . 25 byte.................................................. 26 calendar time . 27 calloc() . Allocate and clear dynamic memory . 27 case . Mark entry in switch table. 28 cast operators . Convert the type of an expression . 28 ceil() . Integral ceiling. 29 char.................................................. 29 CHAR_BIT . 30 CHAR_MAX . 30 CHAR_MIN . 30 character-case mapping . 31 character constant . 32 character display semantics. 33 character handling . 34 character sets . 35 character testing . 35 clearerr() . Clear a stream´s error indicator . 37 CLK_TCK . 37 clock(). Get processor time used . 38 clock_t . System time . 38 close.................................................. 39 command processor . 39 comment . 39 compatible types . 40 compile . 41 compliance. 41 composite types . 41 compound statement. 42 conditional inclusion . 42 const . Qualify an identifier as not modifiable. ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    332 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us