omi-eikyo/src/m_str.h

24 lines
492 B
C
Raw Normal View History

2017-09-20 08:42:57 -07:00
// Copyright © 2017 Project Golan, all rights reserved.
#ifndef m_str_h
#define m_str_h
#include "m_types.h"
2017-09-23 12:43:54 -07:00
#define M_strbufcpy(a, b) (strncpy((a), (b), M_countof(a)))
2017-09-20 08:42:57 -07:00
2017-10-04 02:08:20 -07:00
#if __GDCC__
#define M_strmk(...) M_StrCreate(M_StrFmt(__VA_ARGS__))
#endif
2017-09-20 08:42:57 -07:00
// Extern Functions ----------------------------------------------------------|
char *M_StrFmt(char const *fmt, ...);
mword M_StrHash(char const *s);
#if __GDCC__
2017-09-20 08:42:57 -07:00
__str M_StrCreate(char const *s);
2017-09-29 16:06:00 -07:00
char *M_StrGet(__str name);
#endif
2017-09-20 08:42:57 -07:00
#endif