mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Reduce some var scopes
This commit is contained in:
parent
ac6b0ec1ce
commit
732bc766f9
52 changed files with 318 additions and 409 deletions
|
@ -80,10 +80,10 @@ char *strcat(char *dest, const char *src) {
|
|||
|
||||
/* reverse: reverse string s in place */
|
||||
void strreverse(char s[]) {
|
||||
int c, i, j;
|
||||
int j = strlen(s) - 1;
|
||||
|
||||
for (i = 0, j = strlen(s) - 1; i < j; i++, j--) {
|
||||
c = s[i];
|
||||
for (int i = 0; i < j; i++, j--) {
|
||||
int c = s[i];
|
||||
s[i] = s[j];
|
||||
s[j] = c;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue