GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Seek contants and transformations. More...
#include <sys/types.h>
#include <stddef.h>
Go to the source code of this file.
Enumerations | |
enum | gp_seek_whence |
Seek constants. More... | |
Functions | |
static int | gp_seek_off (ssize_t off, enum gp_seek_whence whence, size_t *cur_pos, size_t max_pos) |
Computes position for a seek like parameters. | |
Seek contants and transformations.
Definition in file gp_seek.h.
enum gp_seek_whence |
|
inlinestatic |
Computes position for a seek like parameters.
whence | A whence for offset. |
off | An offeset to seek to. |
cur_pos | Pointer to a current postion, set to new offset upon successful exit. |
max_pos | Maximal reachable offset. |