#import <stdlib.h>
#import <string.h>
#import "String.h"

@implementation String

+ new:(const char *)aString
{
  self = [super new];
  string = malloc(strlen(aString)+1);
  strcpy(string,aString);
  return self;
}

- (const char*)string
{
  return string;
}

@end
