You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A function which you can use to read variables without a *.
long getValueWithoutStar(char* buffer, int maxlen) {
int s = FindCharInArrayRev(buffer, '(', maxlen - 2);
if (s < 8) return 0;
int e = FindCharInArrayRev(buffer, ')', maxlen - 2);
if (e < 0 || e <= s) return 0;
int l = e - s - 1;
char res[16];
memset(res, 0, sizeof(res));
if (strncpy(res, buffer + s + 1, l)) {
if (isNumber(res, l)) {
return atof(res);
}
}
return 0;
}
The text was updated successfully, but these errors were encountered:
A function which you can use to read variables without a *.
The text was updated successfully, but these errors were encountered: