| 55 | } |
| 56 | |
| 57 | void |
| 58 | Usage ( |
| 59 | void |
| 60 | ) |
| 61 | /*++ |
| 62 | |
| 63 | Routine Description: |
| 64 | |
| 65 | GC_TODO: Add function description |
| 66 | |
| 67 | Arguments: |
| 68 | |
| 69 | |
| 70 | Returns: |
| 71 | |
| 72 | GC_TODO: add return values |
| 73 | |
| 74 | --*/ |
| 75 | { |
| 76 | Version(); |
| 77 | printf ("Copyright (c) 1999-2017 Intel Corporation. All rights reserved.\n"); |
| 78 | printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n"); |
| 79 | printf (" directory or in the specified directory.\n"); |
| 80 | printf ("\nUsage: \n\ |
| 81 | Split\n\ |
| 82 | -f, --filename inputFile to split\n\ |
| 83 | -s, --split VALUE the number of bytes in the first file\n\ |
| 84 | [-p, --prefix OutputDir]\n\ |
| 85 | [-o, --firstfile Filename1]\n\ |
| 86 | [-t, --secondfile Filename2]\n\ |
| 87 | [-v, --verbose]\n\ |
| 88 | [--version]\n\ |
| 89 | [-q, --quiet disable all messages except fatal errors]\n\ |
| 90 | [-d, --debug[#]\n\ |
| 91 | [-h, --help]\n"); |
| 92 | } |
| 93 | |
| 94 | EFI_STATUS |
| 95 | GetSplitValue ( |
| 96 | IN CONST CHAR8* SplitValueString, |
| 97 | OUT UINT64 *ReturnValue |
| 98 | ) |
| 99 | { |
| 100 | UINT64 len = 0; |
| 101 | UINT64 base = 1; |
| 102 | UINT64 index = 0; |
| 103 | UINT64 number = 0; |
| 104 | CHAR8 lastCHAR = 0; |
| 105 | EFI_STATUS Status = EFI_SUCCESS; |
| 106 | |
| 107 | if (SplitValueString != NULL){ |
| 108 | len = strlen(SplitValueString); |
| 109 | } |
| 110 | |
| 111 | if (len == 0) { |
| 112 | return EFI_ABORTED; |
| 113 | } |
| 114 |
no test coverage detected