ObjFW  Diff

Differences From Artifact [cc01727386]:

To Artifact [c7f67be4d5]:


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#import <stdlib.h>
#import <string.h>

#import "OFCString.h"
#import "OFExceptions.h"

@implementation OFCString
- initWithCString: (char*)str
{
	if ((self = [super init])) {
		if (str == NULL) {
			length = 0;
			string = NULL;
		} else {
			length = strlen(str);







|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#import <stdlib.h>
#import <string.h>

#import "OFCString.h"
#import "OFExceptions.h"

@implementation OFCString
- initAsCString: (char*)str
{
	if ((self = [super init])) {
		if (str == NULL) {
			length = 0;
			string = NULL;
		} else {
			length = strlen(str);