Xv6 with picoc & Linkage editor  v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
 All Data Structures
39_typedef.c
00001 #include <stdio.h>
00002 
00003 typedef int MyInt;
00004 
00005 MyInt a = 1;
00006 printf("%d\n", a);
00007 
00008 struct FunStruct
00009 {
00010     int i;
00011     int j;
00012 };
00013 
00014 typedef struct FunStruct MyFunStruct;
00015 
00016 MyFunStruct b;
00017 b.i = 12;
00018 b.j = 34;
00019 printf("%d,%d\n", b.i, b.j);
00020 
00021 typedef MyFunStruct *MoreFunThanEver;
00022 
00023 MoreFunThanEver c = &b;
00024 printf("%d,%d\n", c->i, c->j);
00025 
00026 void main() {}
 All Data Structures