ADL (AMD Display Library) Public APIs  Version 17.1
secure_crt_linux.h
Go to the documentation of this file.
1 #ifndef __SECURE_CRT_LNX_H__
2 #define __SECURE_CRT_LNX_H__
3 
4 #include <stdio.h>
5 #include <string.h>
6 #include <wchar.h>
7 
8 
9 /*
10 This file contains linux warppers for the secure CRT functions that are available in Windows.
11 
12 The wrapper implementation will simply wrap secure functions to insecure functions, to allow cross-platform common code to compile.
13 it will NOT actually implement the security features.
14 
15 2012 - Wei Liang
16 */
17 
18 #ifndef _ERRNO_T_DEFINED
19 #define _ERRNO_T_DEFINED
20 typedef int errno_t;
21 #endif
22 
24  char *strDest,
25  size_t numberOfElements,
26  const char *strSource, size_t count
27 );
28 
30  char *strDestination,
31  size_t numberOfElements,
32  const char *strSource
33 );
34 
36  char *strDestination,
37  size_t numberOfElements,
38  const char *strSource
39 );
40 
42  size_t *pReturnValue,
43  char *mbstr,
44  size_t sizeInBytes,
45  const wchar_t *wcstr,
46  size_t count
47 );
48 
50  wchar_t *strDestination,
51  size_t numberOfElements,
52  const wchar_t *strSource
53 );
54 
56  wchar_t *strDest,
57  size_t numberOfElements,
58  const wchar_t *strSource,
59  size_t count
60 );
61 
63  wchar_t *strDestination,
64  size_t numberOfElements,
65  const wchar_t *strSource
66 );
67 
69  int *pRetValue,
70  char *mbchar,
71  size_t sizeInBytes,
72  wchar_t wchar
73 );
74 
75 #endif /*__SECURE_CRT_LNX_H__*/
errno_t
int errno_t
Definition: secure_crt_linux.h:20
strcpy_s
errno_t strcpy_s(char *strDestination, size_t numberOfElements, const char *strSource)
wcscat_s
errno_t wcscat_s(wchar_t *strDestination, size_t numberOfElements, const wchar_t *strSource)
wcsncpy_s
errno_t wcsncpy_s(wchar_t *strDest, size_t numberOfElements, const wchar_t *strSource, size_t count)
strcat_s
errno_t strcat_s(char *strDestination, size_t numberOfElements, const char *strSource)
wctomb_s
errno_t wctomb_s(int *pRetValue, char *mbchar, size_t sizeInBytes, wchar_t wchar)
wcstombs_s
errno_t wcstombs_s(size_t *pReturnValue, char *mbstr, size_t sizeInBytes, const wchar_t *wcstr, size_t count)
wcscpy_s
errno_t wcscpy_s(wchar_t *strDestination, size_t numberOfElements, const wchar_t *strSource)
strncpy_s
errno_t strncpy_s(char *strDest, size_t numberOfElements, const char *strSource, size_t count)

Copyright © 2009-2020 Advanced Micro Devices, Inc. All rights reserved.