User Tools

Site Tools


programming:c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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, /usr/include, /usr/local/include/), ifndef/define, (stdbool.h and bool type in C99) +==== Compilers ==== 
-creating libraries + 
-compilinglinking, 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, /usr/include, /usr/local/include/), ifndef/define, (stdbool.h and bool type in C99) 
 + 
 +==== creating libraries ==== 
 + 
 +==== compiling linking ==== 
 + 
 +, 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/cookbook ===== ===== Code examples/cookbook =====
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 <unistd.h>
 +
 +int main(int argc, char **argv) {
 +    sleep(2);
 +    return(0);
 +}
 +</code>
  
 ==== malloc and free ==== ==== malloc and free ====
Line 82: Line 118:
  
 ==== using SQLite ==== ==== using SQLite ====
 +
 +==== Get exif info ====
 +
 +https://libexif.github.io
  
 ==== Embedding Python ==== ==== Embedding Python ====
programming/c.1617758742.txt.gz · Last modified: 2021/04/07 01:25 by nanodano