2010-05-09から1日間の記事一覧
C 共用体をバイナリ変換する。 ヘッダファイル union.h #ifndef _UNION_H_ #define _UNION_H_ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; #pragma pack(1) struct top_t { …
C 共用体をバイナリ変換する。 ヘッダファイル union.h #ifndef _UNION_H_ #define _UNION_H_ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; #pragma pack(1) struct top_t { …