os_posix_string.cpp
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2014 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
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 }


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:19