han.comp.lang.c
  Home FAQ Contact Sign in
han.comp.lang.c only
 
Advanced search
June 2008
motuwethfrsasuw
      1 22
2345678 23
9101112131415 24
16171819202122 25
23242526272829 26
30       27
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
han.comp.lang.c Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  비트필드 정의 시, 바이트 내에서 각 비트필드의 위치 결정 방법?         


Author: demiahn
Date: Jun 24, 2008 22:14

아래 코드에서 test_t타입을 보면 unsigned char타입으로 비트필드를 정의했습니다.
그런데 Little Endian과 Big Endian을 사용하는 CPU에서 각각 다른 결과가 나타납니다.
(맨 아래 출력 부분 참조)
Little에서는 test_t타입내의 d1이 LSB로 가는데, Big에서는 MSB로 가는 것 같습니다.
1바이트내에서의 비트 순서가 왜 Endian과 관계가 있는 지를 모르겠습니다.
C표준에서 비트필드의 위치가 어떻게 정의하고 있나요?

추신: 요즘은 어떤 계정으로 뉴스그룹을 접속하나요?
"news.kreonet.re.kr"로 접속이 안되네요...ㅜ.ㅜ

////////////////////////////////////////
#include
#include

typedef struct {
unsigned char d1 : 1;
unsigned char d2 : 7;
} test_t;

int test()
{
test_t tmp;
char buf[1];
Show full article (1.27Kb)
2 Comments
  #@#@# INDIAN BOOBS SEX LIVE SEX FREE VIDEO SEX@#@@#@#@#@#         


Author: kavieaya
Date: Jun 14, 2008 04:54

FREE Sex LIVE SHOW FREE

SEX LIVE SEX INDIAN SEX

FUCKING SEX LIVE SEX

GIRLS SEX LIVE SEX

FREE FREE FRE SEX SEX

http://www.nabble.com/forum/PrintPost.jtp?post=16744664
no comments
  입력버퍼 문제 gets() 입력받지 않고 바로 통과.         


Author: anyshin
Date: Jun 12, 2008 02:02

안녕하세요.

다름이 아니라 입력 버퍼 문제 때문에 질문 드립니다.
입력버퍼에 대한 문제는 예전부터 많이 언급되는 내용인데요..
분명 아래 소스코드에 입력버퍼를 비워주었는데 불구하고 입력구간을 그냥 통과해 버리네요..
이유와 어떻게 하면 의도한대로 정확히 입력받을 수 있을까요..

* 아래 실행은 linux환경에서 gcc로 컴파일 하였습니다.

---------member 1-------
input name : shin
input age : 222
input birthday : input phone number : <-- birthday를 그냥 통과

[소스코드]
#include
#include

#define MEMBER_NUM 2
Show full article (1.79Kb)
5 Comments
  #####SOUTH INDIAN SEX GIRLS SEX######         


Author: ghgfhyghghghgh
Date: Jun 9, 2008 05:05

SEX ONLY SEX INDIAN GIRLS SEX

SEX SEX ONLY SEX SEX SEX SEX

http://www.nabble.com/forum/PrintPost.jtp?post=16744664
no comments
  자기 참조 구조체에서 struct 를 있는 것과 없는 것의 차이점?         


Author: Daesue
Date: May 28, 2008 18:30

자기 참고 구조체를 구현하다가 궁금한 것이 생겼습니다.

간단한 구조체를 보면

typedef struct _NODE {
char *ata;
struct _NODE *next;
} NODE;

입니다.

VC6에서 컴파일하는데

struct _NODE *next;

_NODE *next;
로 바꾸고 컴파일 해도 아무런 에러 없이 컴파일 됩니다.

NODE *next;
로 바꾸고 컴파일해도 아무런 이상 없이 컴파일이 됩니다.

이들에게는 차이가 있을 것 같은데 그 차이가 무엇인지 궁금합니다.

코드는 분명 다른데 컴파일이 된다고 이유없이 쓰기가 불안합니다.

만약 아무런 차이가 없다면 왜 일지도 구금합나다.
1 Comment
  do you see actress         


Author: fff
Date: May 24, 2008 22:25

do you see actress
midnight hot picture and
slide show.
*************************************
http://kathrinaca.blogspot.com
http://actresssaranya.blogspot.com
*************************************
no comments
  New Here Just Thought I Would Say Hi!         


Author: rrsrz5si
Date: Apr 25, 2008 13:57

================================================

Steven Peters --

Steven Peters----
http://www.Crafts4Profit.com
http://www.TravelTheGalaxy.com
http://www.TravelTheGalaxy.biz
================================================

Hi Everyone!

I'm new here so I just wanted to drop in and get a feel for this new
inviroment. So far I can honestly say that I'm very pleased with what
I have seen and read. I think that I'm going to pick up some great
advice as well as information. I was told this was an awesome site to
join. So far, this is great.

Thank You.
Keep Up The Good Work Administration
To Our Success
Steven Peters
no comments
  Seiko Women's Diamond Accented Coutura Watch #SUK009 - Replica Watch Fake         


Author: watches0717
Date: Apr 22, 2008 04:10

Seiko Women's Diamond Accented Coutura Watch #SUK009 - Replica Watch
Fake

Seiko Women's Diamond Accented Coutura Watch #SUK009 Link :
http://www.watchesprice.net/Replica-Seiko-14234.html
Replica Watches Home : http://www.watchesprice.net/
Replica Seiko Brands : http://www.watchesprice.net/Seiko-Replica.html

Replica Seiko Women's Diamond Accented Coutura Watch #SUK009 --- one
of best selling replica watches, it is crafted in high quality, please
click image 'buy now' to buy this chic but inexpensive replica to save
you a lot of money .

Seiko Women's Diamond Accented Coutura Watch SUK009 Description:

A girl can never have too many diamonds!Seiko Women's Coutura Diamond
Steel Watch featuring 20 diamonds surrounding a light blue dial.

Seiko Women's Diamond Accented Coutura Watch SUK009 Details:

Watches-Price Sales Rank: #7077 in Watches
Show full article (3.40Kb)
no comments
  Wholesale Bulova Bracelet Gold Tone Stainless Steel Men's Watch 98C002 Replica         


Author: wholesale018
Date: Apr 21, 2008 13:12

Wholesale Bulova Bracelet Gold Tone Stainless Steel Men's Watch 98C002
Replica

Bulova Bracelet Gold Tone Stainless Steel Men's Watch 98C002 Wholesale
Link : http://www.wholesale-watches.org/wristwatch-4535.html
Wholesale Replica Watches : http://www.wholesale-watches.org/

Buy the cheapest Bulova Bracelet Gold Tone Stainless Steel Men's Watch
98C002 in toppest Replica . www.wholesale-watches.org helps you to
save money! bulova-gold-tone-mens-watch-98C002 , Bulova Bracelet Gold
Tone Stainless Steel Men's Watch 98C002 , Replia , Cheap , Fake ,
imitation , Bulova Watches

Bulova Bracelet Gold Tone Stainless Steel Men's Watch 98C002
Information :
Show full article (3.84Kb)
no comments
  Wholesale Omega Seamaster 300M GMT Mens Watch 2535.80 Replica         


Author: wholesale018
Date: Apr 21, 2008 13:12

Wholesale Omega Seamaster 300M GMT Mens Watch 2535.80 Replica

Omega Seamaster 300M GMT Mens Watch 2535.80 Wholesale Link :
http://www.wholesale-watches.org/wristwatch-3142.html
Wholesale Replica Watches : http://www.wholesale-watches.org/

Buy the cheapest Omega Seamaster 300M GMT Mens Watch 2535.80 in
toppest Replica . www.wholesale-watches.org helps you to save money!
Omega-2535-80 , Omega Seamaster 300M GMT Mens Watch 2535.80 , Replia ,
Cheap , Fake , imitation , Omega Watches

Omega Seamaster 300M GMT Mens Watch 2535.80 Information :
Show full article (5.77Kb)
no comments
 
1 2 3 4 5 6 7 8 9