Changeset 677 for trunk/libs/mini-libc/stdio.h
- Timestamp:
- Nov 20, 2020, 12:18:00 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/stdio.h
r647 r677 27 27 /********************************************************************************************* 28 28 * This file defines the user level, TXT related <stdio> library. 29 * 29 30 * These functions call the read() and write() functions defined in the <unistd> library 30 31 * to access the TXT terminal. … … 38 39 /********************************************************************************************* 39 40 * This defines the user level FILE structure. 41 * The open_file_array[] of files is a global variable allocated in the <stdio.c> file 40 42 ********************************************************************************************/ 41 43 … … 64 66 65 67 /********************************************************************************************* 66 * This function writes one singlecharacter to the standard "stdout" stream.68 * This function writes the <c> character to the standard "stdout" stream. 67 69 ********************************************************************************************* 68 70 * @ returns written character code if success / returns 0 (EOF) if failure. … … 85 87 * @ length : max bumber of characters in target buffer. 86 88 * @ format : formated string. 87 * @ returns number of characters writtenif success / returns -1 if failure.89 * @ returns string length (not including NUL) if success / returns -1 if failure. 88 90 ********************************************************************************************/ 89 91 int snprintf( char * string, 90 92 unsigned int length, 91 93 const char * format, ... ); 94 95 96 97 98 92 99 93 100 /********************************************************************************************* … … 131 138 132 139 /********************************************************************************************* 140 * This function returns one single character from the FILE identified by <stream>. 141 ********************************************************************************************* 142 * @ returns read character code if success / returns 0 (EOF) if failure. 143 ********************************************************************************************/ 144 int fgetc( FILE * stream ); 145 146 /********************************************************************************************* 147 * This function writes the <c> character to the FILE identified by <stream>. 148 ********************************************************************************************* 149 * @ returns written character code if success / returns 0 (EOF) if failure. 150 ********************************************************************************************/ 151 int fputc( int c, 152 FILE * stream); 153 154 /********************************************************************************************* 133 155 * This function copies a formated string to an output stream identified by the <stream> 134 156 * argument. It can be a regular file or a character oriented output device.
Note: See TracChangeset
for help on using the changeset viewer.