Professional Documents
Culture Documents
초보자를 위한 C언어 프로그램 스타일 가이드 1
초보자를 위한 C언어 프로그램 스타일 가이드 1
초보자를 위한 C언어 프로그램 스타일 가이드 1
Beginner Corner
112
Embedded World 113
TECHNICAL FEATURE
/*
right reserved.
* Usage:
keyword identifier
with a right
#include malloc_h.h */
/*
#define X_DPI 300 /* constant define */
** Alternate format( )
#define Y_DPI 300 ,
** *
/* constant function macro */ ** Here is a block Comment
#define isidchar(ch) (isalnum(ch) || (ch) == _ ) */
#define isidfirstchar(ch) (isalpha(ch) || (ch) == _ )
114
if(argc > 1) {
/* Get input file from command line */
if(freopen(argv[1], r ,stdin) == NULL) {
perror(argv[1]);
}
}
struct boat {
int wllength; /* water line length in meters */
int type; /* see below */
long sailarea; /* sail area in square mm */
if(a == EXECPTION ) { };
struct boat {
};
int x = 1;
char *msg = message ;
struct boat winner[] = {
{40, YAWL, 6000000L},
{28, MOTOR, 0L},
{0},
};
int sp_count;
} splodge_t;
116