#include <dk.h>
#include <dktypes.h>
Go to the source code of this file.
Functions | |
dk_stt_t * | dkstt_open (dk_stream_t *st) |
Read string table from stream. | |
void | dkstt_close (dk_stt_t *s) |
Close string table release memory. | |
char * | dkstt_find (dk_stt_t *s, char *k, char *d) |
Retrieve string table entry. |
This modules provides functions to deal with string tables.
void dkstt_close | ( | dk_stt_t * | s | ) |
Close string table release memory.
s | String table to close. |
char* dkstt_find | ( | dk_stt_t * | s, | |
char * | k, | |||
char * | d | |||
) |
Retrieve string table entry.
The function returns a pointer to the found string (in memory managed by the string table structure) or d.
s | String table. | |
k | Entry name to search for. | |
d | Result to return if the string is not found. |
dk_stt_t* dkstt_open | ( | dk_stream_t * | st | ) |
Read string table from stream.
st | Stream to read string table from. |