Przeglądaj źródła

Merge pull request #5077 from lpow100/master

Added certain variable assigment to the rename option and fixed some arugment based logs
pull/5079/head
Ray 2 miesięcy temu
committed by GitHub
rodzic
commit
e7bd177826
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 10 dodań i 4 usunięć
  1. +10
    -4
      examples/rexm.c

+ 10
- 4
examples/rexm.c Wyświetl plik

@ -141,12 +141,18 @@ int main(int argc, char *argv[])
else if (strcmp(argv[1], "rename") == 0)
{
if (argc == 2) LOG("WARNING: No filename provided to create\n");
k">else if (argc == 3) LOG("WARNING: No enough arguments provided\n");
else if (argc > 4) LOG("WARNING: Too many arguments provided\n");
o">//else if (argc == 3) LOG("WARNING: No enough arguments provided\n"); All the documentation says 3 args but I don't mind being wrong
else if (argc > 3) LOG("WARNING: Too many arguments provided\n");
else
{
// TODO: Register exName, exCategory and exRename
strcpy(exName, argv[2]);
for (int index = 0; index < 32; index++)
{
if (exName[index] == '_') break;
exCategory[index] = exName[index];
}
strcpy(exRename, argv[3]);
opCode = 3;
}
}

Ładowanie…
Anuluj
Zapisz