Guardtime KSI c SDK
compatibility.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013-2015 Guardtime, Inc.
3  *
4  * This file is part of the Guardtime client SDK.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License").
7  * You may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  * http://www.apache.org/licenses/LICENSE-2.0
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES, CONDITIONS, OR OTHER LICENSES OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  * "Guardtime" and "KSI" are trademarks or registered trademarks of
16  * Guardtime, Inc., and no license to trademarks is granted; Guardtime
17  * reserves and retains all trademark rights.
18  */
19 
20 #ifndef COMPATIBILITY_H
21 #define COMPATIBILITY_H
22 #include <stddef.h>
23 #include <stdarg.h>
24 #include <time.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
43 size_t KSI_snprintf(char *buf, size_t n, const char *format, ...);
44 
53 size_t KSI_vsnprintf(char *buf, size_t n, const char *format, va_list va);
54 
64 char *KSI_strncpy (char *destination, const char *source, size_t n);
65 
73 int KSI_strdup(const char *from, char **to);
74 
82 time_t KSI_CalendarTimeToUnixTime(struct tm *time);
83 
90 int KSI_strcasecmp(const char *s1, const char *s2);
91 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* COMPATIBILITY_H */
size_t KSI_snprintf(char *buf, size_t n, const char *format,...)
int KSI_strcasecmp(const char *s1, const char *s2)
time_t KSI_CalendarTimeToUnixTime(struct tm *time)
char * KSI_strncpy(char *destination, const char *source, size_t n)
size_t KSI_vsnprintf(char *buf, size_t n, const char *format, va_list va)
int KSI_strdup(const char *from, char **to)