Changeset 3214a20 in mainline for libc/include/stdio.h


Ignore:
Timestamp:
2006-04-24T21:05:59Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11fa83a
Parents:
4309741
Message:

Another version of printf function, now with support for sprintf, snprintf and v*printf functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/stdio.h

    r4309741 r3214a20  
    3131
    3232#include <types.h>
     33#include <stdarg.h>
    3334
    3435#define EOF (-1)
     
    3738
    3839extern int printf(const char *fmt, ...);
     40extern int sprintf(char *str, const char *fmt, ...);
     41extern int snprintf(char *str, size_t size, const char *fmt, ...);
     42
     43extern int vprintf(const char *fmt, va_list ap);
     44extern int vsprintf(char *str, const char *fmt, va_list ap);
     45extern int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
     46
    3947#define fprintf(f, fmt, ...) printf(fmt, ##__VA_ARGS__)
    4048
Note: See TracChangeset for help on using the changeset viewer.