开始设计
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "c_Compiler.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
C_PACKED_STRUCT(
|
||||
MyPackedStruct{
|
||||
char id;
|
||||
int value;
|
||||
short status;
|
||||
});
|
||||
|
||||
int main(int argc, char** argv){
|
||||
struct MyPackedStruct packed_struct={0};
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user