mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
49 lines
791 B
C
49 lines
791 B
C
/*!
|
|
* @file Mw/String.h
|
|
* @brief String utilities
|
|
*/
|
|
#ifndef __MW_STRING_H__
|
|
#define __MW_STRING_H__
|
|
|
|
#include <Mw/MachDep.h>
|
|
#include <Mw/TypeDefs.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
* @brief Duplicates a string
|
|
* @param str String
|
|
* @return String
|
|
*/
|
|
MWDECL char* MwStringDuplicate(const char* str);
|
|
|
|
/*!
|
|
* @brief Concatenates 2 strings
|
|
* @param str1 String
|
|
* @param str2 String
|
|
* @return String
|
|
*/
|
|
MWDECL char* MwStringConcat(const char* str1, const char* str2);
|
|
|
|
/*!
|
|
* @brief Converts size to string
|
|
* @param out Output
|
|
* @param size Size
|
|
*/
|
|
MWDECL void MwStringSize(char* out, MwOffset size);
|
|
|
|
/*!
|
|
* @brief Converts time to string
|
|
* @param out Output
|
|
* @param t Time
|
|
*/
|
|
MWDECL void MwStringTime(char* out, time_t t);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|