Skip to content

File syn_str.h

File List > src > syntropic > util > syn_str.h

Go to the documentation of this file

#ifndef SYN_STR_H
#define SYN_STR_H

#include "../common/syn_defs.h"

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

size_t syn_str_split(char *str, char delimiter, char *tokens[], size_t max_tokens);

char *syn_str_trim(char *str);

bool syn_str_to_i32(const char *str, int32_t *out_val);

bool syn_str_to_u32(const char *str, uint32_t *out_val);

#ifdef __cplusplus
}
#endif

#endif /* SYN_STR_H */