Porting sprintf and strcat from  zzz0072/freertos