diff options
| author | Levi Bostian <levi.bostian@gmail.com> | 2013-08-31 11:44:45 -0500 | 
|---|---|---|
| committer | Levi Bostian <levi.bostian@gmail.com> | 2013-08-31 11:44:45 -0500 | 
| commit | e03cda583dd6127831a32fcc8bd8cd8b53399794 (patch) | |
| tree | 00344c1b69e85352dc957f26c486778cff8060cc | |
| parent | deaaf3412d01a69fdc4354564fba5506ef65f4c8 (diff) | |
Add more to string formatting.
| -rw-r--r-- | c.html.markdown | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/c.html.markdown b/c.html.markdown index a9fd8e50..4e1e1e56 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -22,7 +22,7 @@ Multi-line comments look like this. They work in C89 as well.  //Special characters:  '\n' // newline character -'\t' // tab character +'\t' // tab character (left justifies text)  '\v' // vertical tab  '\f' // new page  '\r' // carriage return @@ -38,6 +38,12 @@ Multi-line comments look like this. They work in C89 as well.  "%7.4s" // (can do with strings too)  "%c"    // char  "%p"    // pointer +"%x"    // hexidecimal +"%o"    // octal +"%%"    // prints %  + +// Constants: use #define keyword, no semicolon at end.  +#define DAYS_IN_YEAR = 365  // Import headers with #include  #include <stdlib.h> | 
