I found a solution.
Using sprintf() I was able to append the int last3ip onto the end of local_ssid buffer.