43PX_INLINE PxI32 fopen_s(FILE** file,
const char* name,
const char* mode)
45 static const PxU32 MAX_LEN = 300;
49 for(i = 0; i<MAX_LEN && name[i]; i++)
50 buf[i] = name[i] ==
'/' ?
'\\' : name[i];
53 return i == MAX_LEN ? -1 : ::fopen_s(file, buf, mode);
59#elif PX_UNIX_FAMILY || PX_SWITCH
67PX_INLINE PxI32 fopen_s(FILE** file,
const char* name,
const char* mode)
69 FILE* fp = ::fopen(name, mode);
80#error "Platform not supported!"
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39