Ignore:
Timestamp:
Feb 3, 2016, 9:57:40 AM (8 years ago)
Author:
alain
Message:

Introducing the generic xprintf() function, called by the various *printf() functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/stdlib.h

    r681 r771  
    55// Copyright (c) UPMC-LIP6
    66///////////////////////////////////////////////////////////////////////////////////
     7
     8#include <stdarg.h>
    79
    810#ifndef _STDLIB_H
     
    6062              char* source );
    6163
     64///////////////////////////////////////////////////////////////////////////////////////
     65// This user function build a formated string.
     66// It analyse the <format> argument and uses the other arguments to returns
     67// a formated string in the <string> buffer.
     68// The <length> define the destination buffer size (bytes).
     69// It returns the number of written characters in case of success.
     70// It returns 0xFFFFFFFF in case of error (illegal format, or buffer overflow).
     71///////////////////////////////////////////////////////////////////////////////////////
     72unsigned int snprintf( char*        string,
     73                       unsigned int length,
     74                       char*        format, ... );
     75
     76///////////////////////////////////////////////////////////////////////////////////////
     77// This service function is called by:
     78// - giet_fat_fprintf()
     79// - giet_tty_printf()
     80// - snprintf()
     81///////////////////////////////////////////////////////////////////////////////////////
     82unsigned int xprintf( char*        string,
     83                      unsigned int length,
     84                      char*        format,
     85                      va_list*     args );
     86               
     87
     88
    6289#endif
     90
    6391
    6492// Local Variables:
Note: See TracChangeset for help on using the changeset viewer.