Changeset 3dbe2d1f in mainline for uspace/libc/generic/io/vsnprintf.c


Ignore:
Timestamp:
2007-04-07T18:00:18Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2a98e58
Parents:
5b303ba
Message:

use futex instead of pthread serialization
synchronize only output to stdout
cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/generic/io/vsnprintf.c

    r5b303ba r3dbe2d1f  
    4444};
    4545
    46 int vsnprintf_write(const char *str, size_t count, struct vsnprintf_data *data);
    47 
    4846/** Write string to given buffer.
    4947 * Write at most data->size characters including trailing zero. According to C99 has snprintf to return number
     
    5654 * @return number of characters to print (not characters really printed!)
    5755 */
    58 int vsnprintf_write(const char *str, size_t count, struct vsnprintf_data *data)
     56static int vsnprintf_write(const char *str, size_t count, struct vsnprintf_data *data)
    5957{
    6058        size_t i;
     
    9896{
    9997        struct vsnprintf_data data = {size, 0, str};
    100         struct printf_spec ps = {(int(*)(void *, size_t, void *))vsnprintf_write, &data};
     98        struct printf_spec ps = {(int(*)(void *, size_t, void *)) vsnprintf_write, &data};
    10199
    102100        /* Print 0 at end of string - fix the case that nothing will be printed */
Note: See TracChangeset for help on using the changeset viewer.