2 * Copyright (C) ARM Limited 2010-2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
15 #define PATH_SEPARATOR '\\'
16 #define CAIMAN_PATH_MAX MAX_PATH
17 #define snprintf _snprintf
20 #define PATH_SEPARATOR '/'
21 #define CAIMAN_PATH_MAX PATH_MAX
28 bool stringToBool(const char* string, bool defValue);
29 void stringToLower(char* string);
30 int getApplicationFullPath(char* path, int sizeOfPath);
31 char* readFromDisk(const char* file, unsigned int *size = NULL, bool appendNull = true);
32 int writeToDisk(const char* path, const char* file);
33 int appendToDisk(const char* path, const char* file);
34 int copyFile(const char* srcFile, const char* dstFile);
35 const char* getFilePart(const char* path);
36 char* getPathPart(char* path);
40 extern OlyUtility* util;
42 #endif // OLY_UTILITY_H