I’m debugging a network application.
I have to simulate some of the data exchanged in order for the application to work. In C++ you can do something like
char* myArray = { 0x00, 0x11, 0x22 };
However, I can’t seem to find a C equivalent for this syntax.
Basically I just want to fill an array with hard coded values.
You can do the same thing in C, but you should declare it of type
char[], notchar*, so that you can get its size with thesizeofoperator: