| 103 | |
| 104 | |
| 105 | static void writeOutput(slice output, bool asHex =false) { |
| 106 | if (asHex) { |
| 107 | string hex = output.hexString(); |
| 108 | fputs(hex.c_str(), stdout); |
| 109 | } else { |
| 110 | fwrite(output.buf, 1, output.size, stdout); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | |
| 115 | int main(int argc, const char * argv[]) { |