Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1866 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup libc |
29 | /** @addtogroup libc |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <stdarg.h> |
35 | #include <stdarg.h> |
36 | #include <stdio.h> |
36 | #include <stdio.h> |
37 | #include <string.h> |
37 | #include <string.h> |
38 | #include <io/printf_core.h> |
38 | #include <io/printf_core.h> |
39 | 39 | ||
40 | - | ||
41 | struct vsnprintf_data { |
40 | struct vsnprintf_data { |
42 | size_t size; /* total space for string */ |
41 | size_t size; /* total space for string */ |
43 | size_t len; /* count of currently used characters */ |
42 | size_t len; /* count of currently used characters */ |
44 | char *string; /* destination string */ |
43 | char *string; /* destination string */ |
45 | }; |
44 | }; |
Line 106... | Line 105... | ||
106 | 105 | ||
107 | /* vsnprintf_write ensures that str will be terminated by zero. */ |
106 | /* vsnprintf_write ensures that str will be terminated by zero. */ |
108 | return printf_core(fmt, &ps, ap); |
107 | return printf_core(fmt, &ps, ap); |
109 | } |
108 | } |
110 | 109 | ||
111 | - | ||
112 | - | ||
113 | - | ||
114 | /** @} |
110 | /** @} |
115 | */ |
111 | */ |
116 | - | ||
117 | - |