[TEST]UPSTREAM: Pick some source changes from 48080d0a97

* Sync new folder structure
This commit is contained in:
2026-04-23 20:55:40 +08:00
parent c185f99ee3
commit 17109fde9b
211 changed files with 189504 additions and 189280 deletions

View File

@@ -0,0 +1,45 @@
#ifndef _UTIL_STRING_H_
#define _UTIL_STRING_H_ 1
#include <stdarg.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
const char *Util_StrSep(const char **stringp,
const char *delim);
int Util_SplitString(char **before,
char **after,
const char *string,
const char *sep);
int Util_SplitFilename(char **dir,
char **file,
const char *string);
char *Util_Strdup(const char *s);
size_t Util_Strlcpy(char *dst, const char *src, size_t dst_size);
size_t Util_Strlcat(char *dst, const char *src, size_t dst_size);
int Util_StrCmpi(const char *string1,
const char *string2);
int Util_StrMemCmpi(const char *string1,
const char *string2,
size_t len2);
int Util_vsnprintf(char *str, size_t count, const char *fmt, va_list args);
int Util_snprintf(char *str, size_t count, const char *fmt, ...);
int Util_asprintf(char **buffer, const char *fmt, ...);
int Util_asnprintf(char **buffer, size_t size, const char *fmt, ...);
#ifdef __cplusplus
}
#endif
#endif /* _UTIL_STRING_H_ */