Fixed c_str()

This commit is contained in:
David Anderson 2005-07-31 06:04:42 +00:00
parent 5751d381af
commit dd6c169994

View File

@ -32,6 +32,8 @@
#ifndef _INCLUDE_CSTRING_H
#define _INCLUDE_CSTRING_H
#include <string.h>
//by David "BAILOPAN" Anderson
class String
{
@ -63,9 +65,9 @@ public:
assign(src.c_str());
}
const char *c_str() { return v; }
const char *c_str() { return v?v:""; }
const char *c_str() const { return v; }
const char *c_str() const { return v?v:""; }
void append(const char *t)
{