All pastes #383571 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-03-06 14:00 UTC
rendered paste body
void mystring::reserve(size_t n)// Library facilities used: string.h, stdlib.h{  if(allocated == n) {    return;  }  allocated = n;  char *temp = sequence;  delete [] sequence;  sequence = new char[allocated];  strcpy(sequence, temp);}