Quote Originally Posted by hebes_99
a value for buno is passed in from another part of the prorgam. I posted it as an int for clarity. In actuality, it is passed in.

float myfunction(int buno)
{

char filepath[64] = "C:\\some path\\";
char filesuffix[32] ="_flt_test.csv";
char bunotostring[6];

// Convert buno number (int) to string
sprintf(bunotostring, "%d", buno);

char *fp = strcat(filepath,strcat(filesuffix,bunotostring));

...
//more code....
}
Your code stays WRONG!
Why don't you want to correct it as cilu and stickben already suggested?
Keep in mind that the length of int may be up to 11 characters (for negativ decimal number) in Win-32.
In this case you MUST declare your char bunotostring array with the size at least 12:
Code:
char bunotostring[12];

// Convert buno number (int) to string
sprintf(bunotostring, "%d", buno);
.............