formatovani sprintf

Tak jsem na to prisel:
sprintf(buffer,"%+04.1f\xd",ds18b20_temperature(&rom_code[0][0]));