Code cleanup:

- correctly use inttypes.h scanf and printf macros (PRIx64 et al)
- fix indendation warnings
This commit is contained in:
pwpiwi 2017-02-22 22:45:00 +01:00
commit 43534cbad2
14 changed files with 58 additions and 57 deletions

View file

@ -44,9 +44,10 @@ int split(char *str, char *arr[MAX_ARGS]){
while(isspace(str[beginIndex])){
++beginIndex;
}
if(str[beginIndex] == '\0')
if(str[beginIndex] == '\0') {
break;
endIndex = beginIndex;
}
endIndex = beginIndex;
while (str[endIndex] && !isspace(str[endIndex])){
++endIndex;
}