Table of Contents

C

General topics

Editors

Compilers

Linkers

==== C standards

- 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

to do

hello world

to do

math operations

exponents, modulus

control logic

(if while switch)

functions/enums/structs

.

linked list/data structures

(see: data structures)

algorithms

(See: algorithms)

cli args

environment variables

arrays

pointers

function pointers

bitwise and binary

inline assembly

random numbers

working with time, sleep, dates

sleep.c
#include <unistd.h>
 
int main(int argc, char **argv) {
    sleep(2);
    return(0);
}

malloc and free

forking

terminal colors

Using Dialog lib

Using curses

working with files and dirs

stdin/err/out/pipes/fifo/sockets

tcp/udp/ssl/ netcat/port scanning/nmap/tcpdump/pcap

Linux kernel module

libstrophe - XMPP

using CURL

working with JSON

using SQLite

Get exif info

https://libexif.github.io

Embedding Python

Writing a Python module

Embedding Ruby

Writing a Ruby module

Using GTK and Glade for GUI

Using nuklear header only lib for gui https://github.com/vurtun/nuklear

Tkinter gui

Using libnotify

Archiving - tar/zip

Compressing Using zlib/xz/gz

Using SDL for graphics/gaming/media

other cookbook examples

sdl-hello.c array_pointers.c bindbash.c bindshell.c bit_count.c celsius_converter.c copy.c count_chars.c count_digits.c count_lines.c count_words.c exponent.c find_longest_line.c freeglut-hello.c heartbleed-test.c hello_world.c libnotify.c linux_kernel_mod.c minimal.c pcap pointer_cast.c print_ascii_in_binary.c print_decimal.c qsort.c random.c README.md sizeof.c ssl_client.c ssl_get.c ssl_server.c static_lib.c subcopy.c two_d_arrays.c windows-opengl.c

More examples