mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 20:00:04 -04:00
Use C99 standard vsnprintf() function
This commit is contained in:
@@ -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); }
|
||||
Reference in New Issue
Block a user