/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */

/*
 * DS specific version of ioslibc.h
 *
 * The reason it needs to be different is to avoid conflicts with
 * nitro headers.
 */

#ifndef __IOS_LIBC_H__
#define __IOS_LIBC_H__

#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned long int size_t;

void *memcpy(void *dst, const void *src, size_t n);

size_t strnlen(const char *str, size_t n);

#define PRINTF_BUF_SIZE 16

int printf(const char *fmt, ...);
int vprintf(const char *fmt, va_list ap);
int snprintf(char *str, size_t size, const char *format, ...);
int vsnprintf(char *str, size_t size, const char *format, va_list ap);

#ifdef __cplusplus
}
#endif

#endif /* __IOS_LIBC_H__ */
