Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00022 
00023 #include <stdarg.h>
00024 #include <stdio.h>
00025 #include <string.h>
00026 
00027 #include "icl_core/os_posix_string.h"
00028 
00029 namespace icl_core {
00030 namespace os {
00031 namespace hidden_posix {
00032 
00033 char * stpcpy(char *dst, const char *src)
00034 {
00035 #if defined(_SYSTEM_QNX_)||defined(__ANDROID__)
00036   char *result = strcpy(dst, src);
00037   for (; *result != 0; ++result)
00038   { }
00039   return result;
00040 #else
00041   return ::stpcpy(dst, src);
00042 #endif
00043 }
00044 
00045 char * strdup(const char *s)
00046 {
00047   return ::strdup(s);
00048 }
00049 
00050 int vsnprintf(char *buffer, size_t maxlen, const char *format, va_list argptr)
00051 {
00052   return ::vsnprintf(buffer, maxlen, format, argptr);
00053 }
00054 
00055 }
00056 }
00057 }