/* Copyright (C) 2004       Manuel Novoa III    <mjn3@codepoet.org>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 *
 * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
 */

#include "klib.h"
#include <stdarg.h>

#if !defined(__ISA_NATIVE__) || defined(__NATIVE_USE_KLIB__)

#include "printf-lib/printf.h"

//int printf(const char *fmt, ...) {
//  return 0;
//}

// TODO: check c size_t
int vsprintf_(char *out, const char *fmt, va_list va) {
  const size_t size_t_max = (size_t)(-1);
  return vsnprintf_(out, size_t_max, fmt, va);
}

//int sprintf(char* out, const char* format, ...) {
//  return 0;
//}
//
//int snprintf(char *out, size_t n, const char *fmt, ...) {
//  return 0;
//}


#endif
