This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
programming:c [2021/04/07 01:25] nanodano |
programming:c [2021/04/15 20:23] (current) nanodano |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== General topics ===== | ===== General topics ===== | ||
| - | C standards - Original C (1983). C90 (1990), C99 (1999), C11 (2011) | + | ==== Editors ==== |
| - | comments (/* */ and \/\/ only in C99) | + | |
| - | header files - creating your own, header-only programs. C Stdlib headers and how to find them (/include, / | + | ==== Compilers ==== |
| - | creating libraries | + | |
| - | compiling, linking, ldd, strace, static vs dynamic, linking against built libs with header files, assembly built, C++ built, `extern C` | + | ==== Linkers ==== |
| - | debugging | + | |
| - | Make and Rake | + | ==== C standards |
| - | Packaging an app (Source, Debian package) (See: packaging applications) | + | |
| - | inline assembly | + | - Original C (1983). C90 (1990), C99 (1999), C11 (2011) |
| + | |||
| + | ==== comments | ||
| + | |||
| + | (/* */ and \/\/ only in C99) | ||
| + | |||
| + | ==== header files ==== | ||
| + | |||
| + | - creating your own, header-only programs. C Stdlib headers and how to find them (/include, / | ||
| + | |||
| + | ==== creating libraries | ||
| + | |||
| + | ==== compiling | ||
| + | |||
| + | , ldd, strace, static vs dynamic, linking against built libs with header files, assembly built, C++ built, `extern C` | ||
| + | specifying include dirs and library dirs | ||
| + | |||
| + | ==== debugging | ||
| + | |||
| + | ==== Make and Rake ==== | ||
| + | |||
| + | ==== Packaging an app ==== | ||
| + | |||
| + | (Source, Debian package) (See: packaging applications) | ||
| + | |||
| ===== Code examples/ | ===== Code examples/ | ||
| Line 52: | Line 77: | ||
| ==== bitwise and binary ==== | ==== bitwise and binary ==== | ||
| + | |||
| + | ==== inline assembly ==== | ||
| ==== random numbers ==== | ==== random numbers ==== | ||
| ==== working with time, sleep, dates ==== | ==== working with time, sleep, dates ==== | ||
| + | |||
| + | <code c sleep.c> | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | sleep(2); | ||
| + | return(0); | ||
| + | } | ||
| + | </ | ||
| ==== malloc and free ==== | ==== malloc and free ==== | ||
| Line 82: | Line 118: | ||
| ==== using SQLite ==== | ==== using SQLite ==== | ||
| + | |||
| + | ==== Get exif info ==== | ||
| + | |||
| + | https:// | ||
| ==== Embedding Python ==== | ==== Embedding Python ==== | ||