All pastes #455232 Raw Edit

Stuff

public c v1 · immutable
·published 2007-04-24 02:18 UTC
rendered paste body
void copyAndCombine(char* src1, char* src2, char* dest){  int i, length, string1, string2;  //Finds character length of each string array.  length = strlen(dest);  string1 = strlen(src1);  string2 = strlen(src2);  for (i = 0; i < length - 1; i++){    if ( i < (string1 - 1)){      dest[i] = src1[i];    }    else if ( i == string1){      dest[i] = ' ';    }    else if ( i < (string1 + string2 + 2)){      dest[i] = src2[i];    }    else if (i = (string1 + string2 + 2)){      break;    }  }}