29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#import "OFMacros.h"
#ifndef HAVE_ASPRINTF
#import "asprintf.h"
#endif
@implementation OFMutableString
- setToCString: (const char*)str
{
size_t len;
if (string != NULL)
[self freeMem: string];
|
>
>
>
>
>
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#import "OFMacros.h"
#ifndef HAVE_ASPRINTF
#import "asprintf.h"
#endif
@implementation OFMutableString
- (id)copy
{
return [OFString stringWithCString: string];
}
- setToCString: (const char*)str
{
size_t len;
if (string != NULL)
[self freeMem: string];
|