mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[misc] Add small function to swap pointers
This commit is contained in:
parent
ee32b9cb70
commit
40d50d693b
@ -569,6 +569,14 @@ trimwhitespace(const char *str)
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
swap_pointers(char **a, char **b)
|
||||||
|
{
|
||||||
|
char *t = *a;
|
||||||
|
*a = *b;
|
||||||
|
*b = t;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
djb_hash(const void *data, size_t len)
|
djb_hash(const void *data, size_t len)
|
||||||
{
|
{
|
||||||
|
@ -82,6 +82,9 @@ unicode_fixup_string(char *str, const char *fromcode);
|
|||||||
char *
|
char *
|
||||||
trimwhitespace(const char *str);
|
trimwhitespace(const char *str);
|
||||||
|
|
||||||
|
void
|
||||||
|
swap_pointers(char **a, char **b);
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
djb_hash(const void *data, size_t len);
|
djb_hash(const void *data, size_t len);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user