os_string.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_OS_STRING_H_INCLUDED
26 #define ICL_CORE_OS_STRING_H_INCLUDED
27 
28 #include <stdio.h>
29 #include <stdarg.h>
30 
31 #include "icl_core/ImportExport.h"
32 #include "icl_core/os_ns.h"
33 
34 #if defined _SYSTEM_POSIX_
36 #elif defined _SYSTEM_WIN32_
38 #else
39 # error "No os_string implementation defined for this platform."
40 #endif
41 
42 namespace icl_core {
43 namespace os {
44 
45 ICL_CORE_IMPORT_EXPORT int snprintf(char *buffer, size_t maxlen, const char *format, ...);
46 
47 inline char * stpcpy(char *dst, const char *src)
48 {
49  return ICL_CORE_OS_IMPL_NS::stpcpy(dst, src);
50 }
51 
52 inline char * strdup(const char *s)
53 {
55 }
56 
57 ICL_CORE_IMPORT_EXPORT int vsnprintf(char *buffer, size_t maxlen, const char *format, va_list argptr);
58 
59 }
60 }
61 
62 #endif
#define ICL_CORE_IMPORT_EXPORT
Definition: ImportExport.h:42
Posix implementation of the global functions for string manipulation,.
Win32 implementation of the global functions for string manipulation,.
Definition of the implementation namespace for global functions.
static char buffer[2000]
int vsnprintf(char *buffer, size_t maxlen, const char *format, va_list argptr)
Definition: os_string.cpp:38
Contains import/export definitions for the Win32 plattform.
char * strdup(const char *s)
Definition: os_string.h:52
int snprintf(char *buffer, size_t maxlen, const char *format,...)
Definition: os_string.cpp:28
char * stpcpy(char *dst, const char *src)
Definition: os_string.h:47


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58