Ge Wangcore ejectedd38351c9 years agoHistory
22 lines · 486 B · C++
RawDownload
#include <string>#include <iostream>#include <sstream>#include <stdio.h>#include <stdlib.h>#include <string.h>using namespace std;  int main( int argc, char ** argv ){    for( int i = 1; i < argc; i++ )    {        ostringstream sout;                argv[i][strlen(argv[i])-4] = '\0';        sout << "hexdump -bv " << argv[i] << ".raw | hex2cpp " << argv[i] << " > " << argv[i] << ".c++";        system( sout.str().c_str() );        cout << sout.str() << endl;    }} 

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t