Ignore:
Timestamp:
2009-06-03T19:26:28Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d00ae4c
Parents:
ca3ba3a
Message:

I/O subsystem overhaul:

  • add more POSIX-like file and stream functions (with real functionality of stdin, stdout, stderr)
  • cleanup console access methods (now generic to any console-like device)
  • remove unsafe stream functions
  • add special open_node(), fd_node(), fd_phone() (file) and fopen_node(), fnode(), fphone() (stream) functions for HelenOS-specific I/O operations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/snprintf.c

    rca3ba3a r2595dab  
    3838
    3939/** Print formatted to the given buffer with limited size.
    40  * @param str   buffer
    41  * @param size  buffer size
    42  * @param fmt   format string
     40 *
     41 * @param str  Buffer
     42 * @param size Buffer size
     43 * @param fmt  Format string
     44 *
    4345 * \see For more details about format string see printf_core.
     46 *
    4447 */
    4548int snprintf(char *str, size_t size, const char *fmt, ...)
    4649{
    47         int ret;
    4850        va_list args;
     51        va_start(args, fmt);
    4952       
    50         va_start(args, fmt);
    51         ret = vsnprintf(str, size, fmt, args);
    52 
     53        int ret = vsnprintf(str, size, fmt, args);
     54       
    5355        va_end(args);
    54 
     56       
    5557        return ret;
    5658}
Note: See TracChangeset for help on using the changeset viewer.