omi-eikyo/src/m_str.h

20 lines
447 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)))
#define M_membufcmp(a, b) (memcmp ((a), (b), M_countof(b)))
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);
#endif
2017-09-20 08:42:57 -07:00
#endif