comp.lang.c
http://groups-beta.google.com/group/comp.lang.c

Today's most active topics:

* struct named 0 - 20 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b7026c716c8ddf97

* Questions about malloc() - 10 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/82b0dc0981bf3664

* Is there a Swap faster than using XOR!!! - 4 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b4478c278a5ebed4

* pointer to a function - 4 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b81fa28c454649af

* problem with scanf( ) - 4 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/955a226cafafd747


Active Topics
-------------

PORTING GMP PROGRAMS TO WINDOWS - 3 new
---------------------------------------
...That refers, of course, to the London subway, yes? MPJ - Sun, Nov 28 2004 2:
10 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4ebd16de0fc5ce98


struct named 0 - 20 new
-----------------------
Is the following code conformat to ANSI C? typedef struct { int a; int b; ...
int main(void) { int x; x = (int)&((doomdata*)0)->b; printf("x=%d\n", x); 
return x; ...The part, (int)&((doomdata*)0)->b; is it conformant to ANSI C? 
What is it supposed to do? Thanks for any tips. Napi - Sun, Nov 28 2004 8:50 
am
20 messages, 10 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b7026c716c8ddf97


"Interesting" C behaviours - 1 new
----------------------------------
...(snip) ...It is what most hardware designers expect. ...I do it by adding 
the modulus and an additional %, a=(x%y+y)%y; It is unknown if the branch 
penalty is more or less than the cost of the extra divide. It is less typing, 
anyway. ...Well, there is a chicken and egg problem. Pretty much all - Sun, 
Nov 28 2004 9:27 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2f9a39b9055dac6


How to convert a negative value to positive - 1 new
---------------------------------------------------
...Personally, storing dates as floating point seems very strange to me. Yes, 
time is continuous(*), but not the way it is usually measured, and not the way
you want it measured. (*) I believe it is still unknown if quantum mechanics 
quantizes time or not. -- glen - Sun, Nov 28 2004 9:35 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6b6e219cd0c9a4cf


Questions about malloc() - 10 new
---------------------------------
...(snip) ...(snip) For a sufficiently small piece of code I could probably 
agree. That size might be about 10 lines of C. Past that, the combinatorics 
are so bad that the assembly programmer would never finish. A compiler using a
dynamic programming algorithm can find an optimal path through a long series 
of operation - Sun, Nov 28 2004 9:45 am
10 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/82b0dc0981bf3664


Unix C programming for finding file - 2 new
-------------------------------------------
On 28 Nov 2004 02:18:45 GMT, in comp.lang.c , [EMAIL PROTECTED] ...Sure,
but its generally accepted in a highly prescriptive sense. Anyone over the age
of 10 spelling horse without the terminal e is likely to be laughed at, have 
their CV discarded out of hand, etc. ...Hmm, I thought they pronounced it 
"aydinborow" on account of them all being - Sun, Nov 28 2004 10:36 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f656fbf7205c815e


Scope of block-local variables - 3 new
--------------------------------------
On 27 Nov 2004 22:34:49 GMT, S.Tobias ...I thought "Ah, that solves it" but 
like a lot of 'eureka' monoents it didn't last. ...Oops, that's true. Just 
invert the case. The centre part should, of course, been 124C_41... I seem to 
remember that at one time identifiers with the form str[[:lower:]].* - Sun, 
Nov 28 2004 12:35 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/dbb680c929978754


i want to convert long integer to string - 4 new
------------------------------------------------
I am working under a Linux environment, and I want to convert a long int into 
a string. It looks doesnt't have a function such ltoa,itoa on stdlib. How Can 
I do that? I tried to work with double numbers, and convert them using fcvt 
function included into stdlib, but after compiled, when I run the - Sun, Nov 
28 2004 5:53 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2fdf88438cf4fbb4


How to read data ? - 1 new
--------------------------
...this, ...In your example you may replace atoi(buf) with : long val; val = 
strtol(buf, NULL, 10); if (val > 32767L || val < -32768L) { /* handle the 
error */ ... ... arr[intindex++] = val; ...You can use appropriate values for 
the minimum and maximum values you want to check against. If you want to allow
val to reach the limits of the long type, checking for - Sun, Nov 28 2004 4:49
pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a69e10059208d734


Systems software versus applications software definitions - 2 new
-----------------------------------------------------------------
...Plz explain your first point. For web servers, to my opinion, they're 
widely using TCP/IP stack, which is OS built-in functions. Therefore, at least
they are not *such* high level apps. - Mon, Nov 29 2004 1:03 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3fa8770993ebe026


problem with setjmp - 4 new
---------------------------
hi all, Consider the following C code: void funct(){ ...int main(){ int x; x=
funct; printf("%x\n",x); return 0; ... It prints the address of the function 
funct().It means that the function funct() is in the process stack even before
it is called.So,it should be safe to call setjmp in the function - Sun, Nov 28
2004 8:37 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a4ea7f0f3168160e


C/C++ code beautifier - 1 new
-----------------------------
...I found an excellent Windows program called Crystal FLOW for C/C++ from [
link] In addition to a nice code beautifier, it creates the best flowcharts 
from code I have seen. It has a complete code browser too. - Sun, Nov 28 2004 
9:03 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/acd7f8376b921f9


problem with scanf( ) - 4 new
-----------------------------
the problem is, The program is supposed to read two numbers. But when i run 
this it waits for a third number to enter. I enter like 33 56 77 Why it is so ?
 - Sun, Nov 28 2004 9:12 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/955a226cafafd747


pointer to a function - 4 new
-----------------------------
hi all, Can anybody plz tell me that what is the return type of the function 
to which ptf points in the following definition: ...Thanks. - Sun, Nov 28 2004
9:14 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b81fa28c454649af


Wide character support - 2 new
------------------------------
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ...OK, I can cope with that. At 
worst, it will need recoding with iconv or similar. ...What I meant by this is
this: const char *narrow = "foo"; const wchar_t *wide = L"bar"; printf("%ls\n",
 bar); wprintf("%s\n", foo); In this example, I've printed a wide string to a 
narrow stream and - Sun, Nov 28 2004 5:57 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e3ff05b73fece7ac


Nth request of book recommendations - 2 new
-------------------------------------------
...Any C programmer needs to read this book. When I first wanted to learn C in
depth the Kochan & Wood books (it was a series) were excellent. Some of the 
info was not available anywhere else. The books are old, some have been 
updated, some are out of print, some are available on their website (just 
google them). I comment on three below. - Sun, Nov 28 2004 10:55 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/13cd6c4626c5730c


Correct type for array indices - 1 new
--------------------------------------
In article <[EMAIL PROTECTED]>, ...Yes, you could. 
Actually, you have to. Which means that of two similar ways to write your code,
 one contains a subtle bug, and one doesn't. Sometimes you will get it wrong. 
Much better to avoid the problem in the first place. ...See reasons above. 
Just because the C Standard Library functions do it, - Sun, Nov 28 2004 7:18 
pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/690f6dcac9f4ed1e


How to set ansi.sys for windows.xp? - 1 new
-------------------------------------------
Kaz wrote: ...Why do you expect anyone to make any sense of the above, quoted 
in full? Bear in mind that there is no guarantee that any previous articles 
are available to the reader. - Sun, Nov 28 2004 8:19 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6a74d833beea23ec


Is there a Swap faster than using XOR!!! - 4 new
------------------------------------------------
hi all swapping two variables using xor can be as follows b = a ^ b a = b ^ a 
b = a ^ b i've been given an assigment to do a swap faster than above and 
without using three variables ( on a linux box over i80x86)? I was wondering 
howz that possible? Any help will be highly appreciated...... regards waqas - 
Sun, Nov 28 2004 4:10 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b4478c278a5ebed4


Learning C with Older books ?. - 3 new
--------------------------------------
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... ..
.I'd say you could go farther and say that not only is he a horrible author or
technical books, the scope of his abysmal mistakes extend beyond just his 
books on C. In general, if his name is on the cover, it's not worth even 
thumbing through, much less purchasing. - Mon, Nov 29 2004 3:35 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33


Welcome to comp.lang.c! - 1 new
-------------------------------
Welcome to comp.lang.c! This post is intended to give the new reader an 
introduction to reading and posting in this newsgroup. We respectfully request
that you read all the way through this post, as it helps make for a more 
pleasant and useful group for everyone. If you are new to newsgroups in 
general, you can learn a lot about how - Mon, Nov 29 2004 1:48 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d5d9b1c2143376e



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

You received this message because you are subscribed to the Google
Groups "comp.lang.c" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.c

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.c/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to