Changeset e499a30 in mainline for generic/include/print.h


Ignore:
Timestamp:
2006-05-02T11:25:22Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6445baf
Parents:
7dd1787
Message:

All the *printf functions ported to kernel.
Comments updated.
Printf1 test uses snprintf to test printing to a string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/print.h

    r7dd1787 re499a30  
    3232#include <arch/types.h>
    3333#include <synch/spinlock.h>
    34 
    35 #define INT8    1
    36 #define INT16   2
    37 #define INT32   4
    38 #define INT64   8
    39 
    40 extern int printf(const char *fmt, ...);
     34#include <arch/arg.h>
    4135
    4236/* We need this address in spinlock to avoid deadlock in deadlock detection */
     
    4539#define EOF (-1)
    4640
     41extern int puts(const char * str);
     42
     43extern int printf(const char *fmt, ...);
     44extern int sprintf(char *str, const char *fmt, ...);
     45extern int snprintf(char *str, size_t size, const char *fmt, ...);
     46
     47extern int vprintf(const char *fmt, va_list ap);
     48extern int vsprintf(char *str, const char *fmt, va_list ap);
     49extern int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
     50
    4751#endif
Note: See TracChangeset for help on using the changeset viewer.