Changeset 771 for soft/giet_vm/giet_libs/stdlib.h
- Timestamp:
- Feb 3, 2016, 9:57:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/stdlib.h
r681 r771 5 5 // Copyright (c) UPMC-LIP6 6 6 /////////////////////////////////////////////////////////////////////////////////// 7 8 #include <stdarg.h> 7 9 8 10 #ifndef _STDLIB_H … … 60 62 char* source ); 61 63 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 /////////////////////////////////////////////////////////////////////////////////////// 72 unsigned 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 /////////////////////////////////////////////////////////////////////////////////////// 82 unsigned int xprintf( char* string, 83 unsigned int length, 84 char* format, 85 va_list* args ); 86 87 88 62 89 #endif 90 63 91 64 92 // Local Variables:
Note: See TracChangeset
for help on using the changeset viewer.