OS UE
Man pages
getopt
man 3 getopt
man 3 string
string functions overview
copy from src to dst: char *strdup(const char *s); char *stpcpy(char *dest, const char *src); char *strcpy(char *dest, const char *src); char *strncpy(char *dest, const char *src, size_t n); size_t strxfrm(char *dest, const char *src, size_t n); int asprintf(char **strp, const char *fmt, ...);append with string: char *strncat(char *dest, const char *src, size_t n);shuffle: char *strfry(char *string);get length: size_t strlen(const char *s);compare 2 strings: int strncmp(const char *s1, const char *s2, size_t n); int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t n); char *strcat(char *dest, const char *src); int strcmp(const char *s1, const char *s2); int strcoll(const char *s1, const char *s2);---first / last index of char: char *index(const char *s, int c); char *strchr(const char *s, int c); char *rindex(const char *s, int c); char *strrchr(const char *s, int c);first index of substring: char *strstr(const char *haystack, const char *needle);first index of one of chars: char *strpbrk(const char *s, const char *chars);count until first illegal char: size_t strspn(const char *s, const char *chars); size_t strcspn(const char *s, const char *chars);split string: char *strsep(char **stringp, const char *delim); char *strtok(char *s, const char *delim);
shared memory
man 3 shm_open
man 7 sem_overview
man 7 shm_overview
man 7 shm_overview
fork, pipe, execle
man 2 pipe
- fork, pipe, write
man 2 dup2
man 2 wait
man 3 system
socket
man 2 select_tut
- also has sigaction
man 7 unix
- has overview
man 3 getaddrinfo
- fallback, if no ipv4 given
Man pages for last exam
man 2 select_tut
- if ipv4 is given
man 7 unix
- has overview
man 2 pipe
- fork, pipe, read/write
man 3 system
//
man 3 getaddrinfo
- fallback, if no ipv4 given