*** empty log message ***
[chuck-blob.git] / scripts / raw2code.cpp
blob7c608dc5948199a2877049d01a377c8bf48a0872
1 #include <string>
2 #include <iostream>
3 #include <sstream>
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7 using namespace std;
10 int main( int argc, char ** argv )
12 for( int i = 1; i < argc; i++ )
14 ostringstream sout;
16 argv[i][strlen(argv[i])-4] = '\0';
17 sout << "hexdump -bv " << argv[i] << ".raw | hex2cpp " << argv[i] << " > " << argv[i] << ".c++";
18 system( sout.str().c_str() );
19 cout << sout.str() << endl;