online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> #include <string.h> void convert (char* from, char* to) { memcpy(to,"0x",2); to += 2; for (; *from; from++) { if (*from==':') { memcpy(to,", 0x",4); to += 4; } else { *to++ = *from; } } *to = 0; } int main() { char str[] = "69:66:84:1A:0E:E7:E5:51:30:82:60:A7:27:F2:A5:54:56:B9:15:19"; char out[strlen(str)*4+3]; convert(str,out); printf("%s\n",out); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue