#include <karch/arch.h>
#include <karch/types.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
Go to the source code of this file.
Defines |
|
#define | K_KERNEL_VERSION 12000 |
#define | K_NO_PROJECTSETTINGS |
#define | MEMORY_DEBUG |
#define | KPROFILING_CODE_ENABLE |
#define | K_ENABLE_STREAM_FCURVE |
#define | NULL ((void *)0) |
#define | K_MAX_TEXT_LENGTH 1020 |
#define | K_FORWARD(ClassName) class ClassName; typedef ClassName *H##ClassName |
#define | K_FORWARD_HI(ClassName) class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName |
#define | K_SAFE_FREE_PTR(p) if( p ){ free( p ); (p) = NULL; } |
#define | K_SAFE_DELETE_PTR(p) if( p ){ delete (p); (p) = NULL; } |
#define | K_SAFE_DELETE_ARRAY_PTR(a) if( a ){ delete [] (a); (a) = NULL; } |
#define | K_SAFE_DESTROY_OBJECT(p) { if( p ){ (p)->Destroy(); (p) = NULL; } } |
#define | _MSC_EMULATOR |
#define | override |
#define | sealed |
#define | abstract =0 |
#define | _TRUNCATE ((size_t)-1) |
#define | strtok_s(token, sep, context) strtok( token,sep ) |
#define | strncat_s(dst, bufsize, src, len) strncat( dst,src,len ) |
#define | _stricmp strcasecmp |
#define | strcmpi strcasecmp |
#define | _strcmpi strcasecmp |
#define | stricmp strcasecmp |
#define | strncmpi strncasecmp |
#define | strnicmp strncasecmp |
#define | _atoi64(str) strtoll( str,NULL,10 ) |
#define | _isnan(x) isnan( x ) |
#define | itoa _itoa |
#define | K_LOCAL_CLASS |
#define | K_DEPRECATED |
Functions |
|
int | strcpy_s (char *dst, size_t bufsize, const char *src) |
template<size_t bufsize> | |
int | strcpy_s (char(&dst)[bufsize], const char *src) |
int | strncpy_s (char *dst, size_t bufsize, const char *src, size_t count) |
template<size_t bufsize> | |
int | strncpy_s (char(&dst)[bufsize], const char *src, size_t count) |
int | vsprintf_s (char *buffer, size_t bufsize, const char *format, va_list args) |
template<size_t bufsize> | |
int | vsprintf_s (char(&buffer)[bufsize], const char *format, va_list args) |
int | sprintf_s (char *buffer, size_t bufsize, const char *format,...) |
template<size_t bufsize> | |
int | sprintf_s (char(&buffer)[bufsize], const char *format,...) |
int | strcat_s (char *dst, size_t bufsize, const char *src) |
template<size_t bufsize> | |
int | strcat_s (char(&dst)[bufsize], const char *src) |
char * | _itoa (int pValue, char *pString, int pRadix) |
#define K_KERNEL_VERSION 12000 |
#define K_NO_PROJECTSETTINGS |
#define MEMORY_DEBUG |
#define KPROFILING_CODE_ENABLE |
#define K_ENABLE_STREAM_FCURVE |
#define NULL ((void *)0) |
#define K_MAX_TEXT_LENGTH 1020 |
#define K_FORWARD | ( | ClassName | ) | class ClassName; typedef ClassName *H##ClassName |
#define K_FORWARD_HI | ( | ClassName | ) | class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName |
#define K_SAFE_FREE_PTR | ( | p | ) | if( p ){ free( p ); (p) = NULL; } |
#define K_SAFE_DELETE_PTR | ( | p | ) | if( p ){ delete (p); (p) = NULL; } |
#define K_SAFE_DELETE_ARRAY_PTR | ( | a | ) | if( a ){ delete [] (a); (a) = NULL; } |
#define K_SAFE_DESTROY_OBJECT | ( | p | ) | { if( p ){ (p)->Destroy(); (p) = NULL; } } |
#define _MSC_EMULATOR |
#define override |
#define sealed |
#define abstract =0 |
#define _TRUNCATE ((size_t)-1) |
#define strtok_s | ( | token, | |
sep, | |||
context | |||
) | strtok( token,sep ) |
#define strncat_s | ( | dst, | |
bufsize, | |||
src, | |||
len | |||
) | strncat( dst,src,len ) |
#define _stricmp strcasecmp |
#define strcmpi strcasecmp |
#define _strcmpi strcasecmp |
#define stricmp strcasecmp |
#define strncmpi strncasecmp |
#define strnicmp strncasecmp |
#define _atoi64 | ( | str | ) | strtoll( str,NULL,10 ) |
#define _isnan | ( | x | ) | isnan( x ) |
#define itoa _itoa |
#define K_LOCAL_CLASS |
#define K_DEPRECATED |
int strcpy_s | ( | char * | dst, |
size_t | bufsize, | ||
const char * | src | ||
) | [inline] |
int strcpy_s | ( | char(&) | dst[bufsize], |
const char * | src | ||
) |
int strncpy_s | ( | char * | dst, |
size_t | bufsize, | ||
const char * | src, | ||
size_t | count | ||
) | [inline] |
int strncpy_s | ( | char(&) | dst[bufsize], |
const char * | src, | ||
size_t | count | ||
) |
int vsprintf_s | ( | char * | buffer, |
size_t | bufsize, | ||
const char * | format, | ||
va_list | args | ||
) | [inline] |
int vsprintf_s | ( | char(&) | buffer[bufsize], |
const char * | format, | ||
va_list | args | ||
) |
Definition at line 259 of file kaydara.h.
{ return vsprintf_s( buffer,bufsize,format, args ); }
int sprintf_s | ( | char * | buffer, |
size_t | bufsize, | ||
const char * | format, | ||
... | |||
) | [inline] |
Definition at line 264 of file kaydara.h.
{ va_list Arguments; va_start( Arguments, format); /* Initialize variable arguments. */ int result = vsprintf_s( buffer,bufsize,format, Arguments ); va_end( Arguments ); /* Reset variable arguments. */ return result; }
int sprintf_s | ( | char(&) | buffer[bufsize], |
const char * | format, | ||
... | |||
) |
Definition at line 272 of file kaydara.h.
{ va_list Arguments; va_start( Arguments, format); /* Initialize variable arguments. */ int result = vsprintf_s( buffer,bufsize,format, Arguments ); va_end( Arguments ); /* Reset variable arguments. */ return result; }
int strcat_s | ( | char * | dst, |
size_t | bufsize, | ||
const char * | src | ||
) | [inline] |
int strcat_s | ( | char(&) | dst[bufsize], |
const char * | src | ||
) |