Use C99 standard vsnprintf() function

This commit is contained in:
Azamat H. Hackimov
2024-05-19 12:40:50 +03:00
parent b20964e97f
commit 20d38d7367
6 changed files with 10 additions and 91 deletions

View File

@@ -16,14 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext);
int _vsnprintf(char *buffer, size_t count, const char *format, va_list argptr);
int stricmp(const char *string1, const char *string2);
#include <cstring>
void _splitpath(const char *srcPath, char *drive, char *path, char *filename, char *ext) {
int pathStart = -1;
@@ -103,8 +96,4 @@ void _splitpath(const char *srcPath, char *drive, char *path, char *filename, ch
}
}
int _vsnprintf(char *buffer, size_t count, const char *format, va_list argptr) {
return vsnprintf(buffer, count, format, argptr);
}
int stricmp(const char *string1, const char *string2) { return strcasecmp(string1, string2); }