From 5366852335044c1e68a5c32548d3051cc943552f Mon Sep 17 00:00:00 2001 From: Leo C Date: Tue, 19 Aug 2014 15:31:33 +0200 Subject: Import fatfs R0.10b FatFs Module Source Files R0.10b Author: (C)ChaN, 2014 (http://elm-chan.org) URL: http://elm-chan.org/fsw/ff/ff10b.zip --- fatfs/doc/en/puts.html | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 fatfs/doc/en/puts.html (limited to 'fatfs/doc/en/puts.html') diff --git a/fatfs/doc/en/puts.html b/fatfs/doc/en/puts.html new file mode 100644 index 0000000..30b1dd3 --- /dev/null +++ b/fatfs/doc/en/puts.html @@ -0,0 +1,62 @@ + + +
+ + + + + +The f_puts function writes a string to the file.
++int f_puts ( + const TCHAR* str, /* [IN] String */ + FIL* fp /* [IN] File object */ +); ++
When the function succeeded, it returns number of characters written. When the write operation is aborted due to disk full or any error, an EOF (-1) will be returned.
+When FatFs is configured to Unicode API (_LFN_UNICODE == 1), character encoding on the srting fuctions, f_putc(), f_puts(), f_printf() and f_gets(), is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by _STRF_ENCODE option.
+The f_puts() function is a wrapper function of f_write() function.
+Available when _FS_READONLY == 0 and _USE_STRFUNC is 1 or 2. When it is set to 2, '\n's contained in the string are converted to '\r'+'\n'.
+