PipeWire  0.3.32
string.h File Reference

Go to the source code of this file.

Functions

bool spa_streq (const char *s1, const char *s2)
 
bool spa_strneq (const char *s1, const char *s2, size_t len)
 
bool spa_strstartswith (const char *s, const char *prefix)
 
bool spa_strendswith (const char *s, const char *suffix)
 
bool spa_atoi32 (const char *str, int32_t *val, int base)
 Convert str to an int32_t with the given base and store the result in val. More...
 
bool spa_atou32 (const char *str, uint32_t *val, int base)
 Convert str to an uint32_t with the given base and store the result in val. More...
 
bool spa_atoi64 (const char *str, int64_t *val, int base)
 Convert str to an int64_t with the given base and store the result in val. More...
 
bool spa_atou64 (const char *str, uint64_t *val, int base)
 Convert str to an uint64_t with the given base and store the result in val. More...
 
bool spa_atob (const char *str)
 Convert str to a boolean. More...
 
int spa_vscnprintf (char *buffer, size_t size, const char *format, va_list args)
 "Safe" version of vsnprintf. More...
 
int spa_scnprintf (char *buffer, size_t size, const char *format,...)
 "Safe" version of snprintf. More...
 
bool spa_atof (const char *str, float *val)
 Convert str to a float and store the result in val. More...
 
bool spa_atod (const char *str, double *val)
 Convert str to a double and store the result in val. More...