All pastes #608755 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-08 14:06 UTC
rendered paste body
bool mid(char *line, char *out, int s, int l)
{
	l=s+l;int i=s;
	while(i<=l){out[i-s]=line[i];i++;}out[l-s]=0;
	return true;
}

int main()
{
	char line[64]="number: 895 then";
	char out[64];
	mid(line, out, 8, 3);
	cout << atof(out);
	cin.get();cin.get();
	return 0;
}