C/Biblioteka standardowa/Indeks tematyczny
Spis plików nagłówkowych oraz zawartych w nich funkcji i makr biblioteki standardowej C. Funkcje, makra i typy wprowadzone dopiero w standardzie C99 zostały oznaczone poprzez "[C99]" po nazwie. (Zobacz też Indeks alfabetyczny.)
assert.h edytuj
Makro asercji.
ctype.h edytuj
Klasyfikowanie znaków.
isalnum() | isalpha() | isblank() [C99] |
iscntrl() | isdigit() | isgraph() |
islower() | isprint() | ispunct() |
isspace() | isupper() | isxdigit() |
tolower() | toupper() |
errno.h edytuj
Deklaracje kodów błędów.
float.h edytuj
Właściwości typów zmiennoprzecinkowych zależne od implementacji.
Możemy odnaleźć ten plik :
find /usr/ -name "float.h"
Otrzymujemy (przykładowy wynik) :
/usr/lib/clang/2.8/include/float.h /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include/float.h /usr/include/c++/4.5/tr1/float.h /usr/include/tcl8.5/tcl-private/compat/float.h
inttypes.h edytuj

W pliku inttypes.h są ( od C99) zdefiniowane:
- liczby całkowite o stałej szerokości ( ang. Fixed width integer types ) [1]
- makra służące do ich wyświetlania
iso646.h edytuj
Plik iso646.h[2] możemy odnaleźć:[3]
find /|grep iso646.h
Przykładowy wynik:
/usr/lib/llvm-10/lib/clang/10.0.1/include/iso646.h /usr/lib/gcc/x86_64-linux-gnu/9/include/iso646.h /usr/lib/gcc/x86_64-linux-gnu/10/include/iso646.h /usr/lib/gcc/x86_64-linux-gnu/8/include/iso646.h /usr/lib/llvm-11/lib/clang/11.0.0/include/iso646.h
limits.h edytuj
Właściwości typów całkowitych zależne od implementacji.
locale.h edytuj
Ustawienia międzynarodowe.
math.h edytuj
setjmp.h edytuj
Obsługa nielokalnych skoków.
signal.h edytuj
Obsługa sygnałów.
stdarg.h edytuj
Narzędzia dla funkcji ze zmienną liczbą argumentów.
stddef.h edytuj
Zawiera definicje:
- NULL = stała wskażnika zerowego, znak sterujący o wartości liczbowej 0
- offsetof() = wyrażenie całkowite, stałe typu size_t. Wartością wyrażenia jest przesunięcie w bajtach do elementu członkowskiego struktury
Definicje przez typedef:
- ptrdiff_t = Typ całkowy ze znakiem, wynik odjęcia dwóch wskaźników
- wchar_t = Typ całkowity, którego zakres wartości może reprezentować różne kody znakowe
- size_t = Typ całkowity bez znaku, wynik operatora sizeof
stdio.h edytuj
Standard Input/Output, czyli standardowe wejście-wyjście.
stdlib.h edytuj
Najbardziej podstawowe funkcje.
string.h edytuj
Operacje na łańcuchach znaków
time.h edytuj
Funkcje obsługi czasu.[4]
asctime() | clock() | ctime() |
difftime() | gmtime() | localtime() |
mktime() | strftime() | time() |
tm (struktura) |
unistd.h edytuj
Function | Description | |
---|---|---|
crypt
|
password and data encryption | |
encrypt
|
encrypt 64-bit messages | |
gethostid
|
get the unique identifier of the current host | |
gethostname
|
get hostname | |
getopt
|
parse command-line options | |
swab
|
swap adjacent bytes | |
sysconf
|
get configuration at run time | |
Signals | alarm
|
schedule an alarm signal |
pause
|
wait for signal | |
Filesystem | access |
check user's permissions for a file |
chdir |
change working directory | |
chown |
change owner and group of a file | |
close
|
close a file descriptor | |
dup |
duplicate a file descriptor | |
fsync |
synchronize a file's in-core state with storage device | |
fpathconf |
get configuration values for files | |
ftruncate truncate
|
truncate a file to a specified length | |
getcwd getwd |
get current working directory | |
isatty
|
test whether a file descriptor refers to a terminal | |
link |
make a new name for a file | |
lockf
|
apply, test or remove a POSIX lock on an open file | |
lseek
|
reposition read/write file offset | |
pipe |
create pipe | |
pread |
read from or write to a file descriptor at a given offset | |
read
|
read from a file descriptor | |
readlink |
read value of a symbolic link | |
rmdir
|
delete a directory | |
symlink |
make a new name for a file | |
sync |
commit filesystem caches to disk | |
ttyname |
return name of a terminal | |
unlink |
delete a name and possibly the file it refers to | |
write
|
write to a file descriptor | |
Process | _exit
|
terminate the calling process |
execl |
execute a file | |
fexecve
|
execute program specified via file descriptor | |
fork
|
create a new process | |
setpgid |
set/get process group | |
getpid |
get process identification | |
getsid
|
get session ID | |
nice
|
change process priority | |
setsid
|
creates a session and sets the process group ID | |
sleep
|
sleep for a specified number of seconds | |
tcgetpgrp |
get and set terminal foreground process group | |
User/Group | getgid |
get group identity |
getuid |
get user identity | |
getgroups
|
get list of supplementary group IDs | |
getlogin |
get username | |
seteuid |
set effective user or group ID | |
setgid
|
set group identity | |
setreuid |
set real and/or effective user or group ID | |
setuid
|
set user identity |
wchar.h edytuj
Plik wchar.h zawiera definicje funkcje obsługi ciągów szerokich znaków ( wchar = wide characters)
Źródła edytuj
- ↑ cppreference: c types integer
- ↑ iso646.h w nag wikipedii
- ↑ stackoverflow question: cannot-find-iso646-h-in-glibc
- ↑ stackoverflow question: how-do-i-measure-time-in-c ?