19 #pragma warning( disable : 4706) 20 #pragma warning( disable : 4996) 48 if ((s= strrchr( argv[0],
'\\'))
49 || (s= strrchr( argv[0],
'/')))
53 if ((
int)strlen(s) < max_size)
57 if ((s= strstr(command,
".EXE"))
58 || (s= strstr(command,
".exe")))
61 for (i=1; i < argc; i++) {
63 remaining= max_size - (int)strlen(command) - (int)strlen(s) - 2;
64 if (!*s || strchr(s,
' ')) {
65 char *
t= command + strlen(command);
82 }
else if (remaining < 0) {
106 unsigned int count= 1;
110 for (i=0; i<argc; i++){
111 count += (int)strlen(argv[i]) + 1;
112 if (i>0 && strchr(argv[i],
' ')) {
114 for (s=argv[i]; *s; s++) {
145 #define qh_rand_a 16807 146 #define qh_rand_m 2147483647 147 #define qh_rand_q 127773 148 #define qh_rand_r 2836 189 return randr * scale + offset;
206 realT **rowi, *coord, realr;
210 for (i=0; i < dim; i++) {
212 for (k=0; k < dim; k++) {
232 result= strtod(s, endp);
233 if (s < (*endp) && (*endp)[-1] ==
' ')
241 result= (int) strtol(s, endp, 10);
242 if (s< (*endp) && (*endp)[-1] ==
' ')
void seed(unsigned int seed_value)
double qh_strtod(const char *s, char **endp)
void test(const Shape &original_shape, const FCL_REAL inflation, const FCL_REAL tol=1e-8)
int qh_strtol(const char *s, char **endp)
void qh_randommatrix(realT *buffer, int dim, realT **rows)
int qh_argv_to_command_size(int argc, char *argv[])
realT qh_randomfactor(realT scale, realT offset)
int qh_argv_to_command(int argc, char *argv[], char *command, int max_size)