setd_sub(st, NULL, ".@atcmd_command$", 0, (void *)command, NULL);
temp = (char*)aMalloc(strlen(message) + 1);
if(message[0] == '"'){
for( i = 1; i < ( strlen( message + 1)) && k < 127; i ++ ) {
temp[k] = message[i];//vllt weil kein wert drin steht
k++;
}
temp[k] = '\0';
k = 0;
setd_sub( st, NULL, ".@atcmd_parameters$", j++, (void *)temp, NULL );
}else{
for( i = 0; i < ( strlen( message ) + 1 ) && k < 127; i ++ ) {
/*if( message[i] == ' ' || message[i] == '\0' ) {
if( message[ ( i - 1 ) ] == ' ' ) {
continue; // To prevent "@atcmd [space][space][space]..."
}
temp[k] = '\0';
k = 0;
setd_sub( st, NULL, ".@atcmd_parameters$", j++, (void *)temp, NULL );
} else {*/
if( message[i] == ' ' || message[i] == '\0' ) {
if( message[ ( i - 1 ) ] == ' ' ) {
continue; // To prevent "@atcmd [space][space][space]..."
}
temp[k] = '\0';
k = 0;
setd_sub( st, NULL, ".@atcmd_parameters$", j++, (void *)temp, NULL );
} else {
temp[k] = message[i];
k++;
}
}
}
setd_sub(st, NULL, ".@atcmd_numparameters", 0, (void *)__64BPRTSIZE(j), NULL);
aFree(temp);
run_script_main(st); return 0;