DescriptionThe format control directive เป็น a sub-set of standard library ที่แสดงดังต่อไปนี้:

flag
ทางเลือกการรอง. A - ระบุชิดซ้าย. A 0 ระบุศูนย์ถูกรอง. The default setting อยู่ในชิดขวาและเว้นวรรค(ช่องว่าง)ถูกรอง.
width
ความกว้างต่ำสุดของฟิลด์, 1-99 หรือ *. ถ้าความกว้างของ generated string น้อยกว่าค่าที่ระบุ, ฟิลด์ที่เหลือจะถูกรองด้วย spaces
หรือ zeros. An * ระบุค่าที่มาจาก an argument ใน int type
precision
ระบุจำนวนของเศษส่วนหรือความกว้างสูงสุดของ string, .0-.99 or .*. ถ้า number ถูกละเว้น, มันจะเป็นเช่นเดียวกันกับ .0.
Default setting คือ 6 สำหรับ number และไม่จำกัดสำหรับ string.
size
ระบุขนาดของ integer argument, l(long) and ll(long long). ถ้า sizeof (long) == sizeof (int) เป็นจริง (นี่เป็นเรื่องปกติ
ของ 32-bit systems), คำนำหน้า l สามารถถูกละเว้นได้สำหรับ long integer argument. The default size เป็น int สำหรับ
integer arrument และ floating point argument จะถูกถือว่าเป็น double เสมอ.
type
ระบุประเภทของ the output format และ the argument ดังแสดงข้างล่าง. ความยาวของ generated string อยู่ในการสันนิษฐาน
ว่าเป็น int คือ 32-bit.

เมื่อ FatFs ถูกกำหนดค่าสำหรับ Unicode API (FF_LFN_UNICODE >= 1), character encoding บน the string fuctions, f_putc, f_puts, f_printf and f_gets function, จะถูกสลับเป็น Unicode ด้วย. The input Unicode characters ใน multiple encoding unit, อย่างเช่น surrogate pair and multi-byte sequence, ไม่ควรถูกแบ่งลงใน two function calls, หรือ the character จะสูญหาย. The character encoding บน the file ที่จะถูกเขียนโดยทางฟังชั่นนี้จะถูกเลือกโดย FF_STRF_ENCODE. The characters ที่มี wrong encoding หรือใช้ไม่ได้สำหรับ the output encoding จะสูญหาย.
QuickInfoนี้เป็น a wrapper function ของ f_write function. มีให้ใช้งานเมื่อ FF_FS_READONLY == 0 and FF_USE_STRFUNC >= 1. เมื่อ FF_USE_STRFUNC == 2, '\n's ใน the generated string จะถูกเขียนเป็นแต่ละ '\r'+'\n'.
Example
See Alsof_open, f_putc, f_puts, f_gets, f_close, FIL