Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
platform_utils.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2007-2025 Global Graphics Software Ltd. All rights reserved.
3 */
4
12
13#ifndef EDLPLATFORM_UTILS_H
14#define EDLPLATFORM_UTILS_H
15
16#include <stdio.h>
17#include <stdarg.h>
18#include <edl/edlnamespaces.h>
19#include <edl/edltypes.h>
20
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
37 EDL_API int edlMkdir (const char *dir);
38
45 EDL_API int edlRmdir (const char *dir);
46
56
63
70 EDL_API FILE *edlFopen(const char *filename, const char *mode);
71
84 EDL_API int edlVsnprintf(char *buffer, size_t n, const char *format, va_list ap);
85
96 EDL_API int edlSnprintf(char *buffer, size_t n, const char *format, ...);
97
110 EDL_API double edlStrtod(const char *str, char **endptr);
111
112#ifdef __cplusplus
113}
114#endif
115
116#ifdef __cplusplus
117
124EDL_API void edlSnprintfE(char *buffer, size_t n, const char *format, ...);
125
126#endif /* __cplusplus */
127
129
131#endif /* EDLPLATFORM_UTILS_H */
132
EDL C++ namespace(s)
#define _BEGIN_EDL_NAMESPACE
Definition edlnamespaces.h:75
#define _END_EDL_NAMESPACE
Definition edlnamespaces.h:76
EDL "standard" types including known bit-length signed and unsigned integer type[def]s and definition...
#define EDL_API
Definition edltypes.h:86
EDL_API int edlVsnprintf(char *buffer, size_t n, const char *format, va_list ap)
Implementation of vsnprintf that always uses the C locale, to write formatted data from variable argu...
EDL_API char * edlGetTemporaryDirectory(void)
Get the platform-specific temporary directory path. This is created by consulting platform specific A...
EDL_API double edlStrtod(const char *str, char **endptr)
Implementation of strtod that always uses the C locale to parse the C string str interpreting its con...
EDL_API int edlGetProcessId()
Gets the process id of the calling process. This is useful if the user wants to provide separate temp...
EDL_API int edlRmdir(const char *dir)
Removes a subdirectory, if it is empty.
EDL_API FILE * edlFopen(const char *filename, const char *mode)
Open a file as per fopen, handling UTF8 file names on all platforms.
_BEGIN_EDL_NAMESPACE EDL_API int edlMkdir(const char *dir)
Creates a subdirectory path (including parents) in an existing directory tree.
EDL_API int edlSnprintf(char *buffer, size_t n, const char *format,...)
Implementation of snprintf that always uses the C locale. Parameters as per snprintf().