os_string.h
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 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00024 //----------------------------------------------------------------------
00025 #ifndef ICL_CORE_OS_STRING_H_INCLUDED
00026 #define ICL_CORE_OS_STRING_H_INCLUDED
00027 
00028 #include <stdio.h>
00029 #include <stdarg.h>
00030 
00031 #include "icl_core/ImportExport.h"
00032 #include "icl_core/os_ns.h"
00033 
00034 #if defined _SYSTEM_POSIX_
00035 # include "icl_core/os_posix_string.h"
00036 #elif defined _SYSTEM_WIN32_
00037 # include "icl_core/os_win32_string.h"
00038 #else
00039 # error "No os_string implementation defined for this platform."
00040 #endif
00041 
00042 namespace icl_core {
00043 namespace os {
00044 
00045 ICL_CORE_IMPORT_EXPORT int snprintf(char *buffer, size_t maxlen, const char *format, ...);
00046 
00047 inline char * stpcpy(char *dst, const char *src)
00048 {
00049   return ICL_CORE_OS_IMPL_NS::stpcpy(dst, src);
00050 }
00051 
00052 inline char * strdup(const char *s)
00053 {
00054   return ICL_CORE_OS_IMPL_NS::strdup(s);
00055 }
00056 
00057 ICL_CORE_IMPORT_EXPORT int vsnprintf(char *buffer, size_t maxlen, const char *format, va_list argptr);
00058 
00059 }
00060 }
00061 
00062 #endif


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:03