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

Today's most active topics:

* How to find out if an int has no value - 22 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a20f9e4e4a3adcad

* srand() troubles - 7 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cbe4162622b4bab5

* linux speaker beep - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a0e2a5a961920995

* Exception handling - 5 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6c92e413959f500c

* Comparing Linux C and C++ Compilers: Benchmarks and Analysis - 5 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5dbb9ae19db772cb

 
Active Topics
=============

Exception handling - 5 new
----------------------------------
HI Currently i am handling excpetion using TRY/catch in my code.I am 
looking for solution some thing like this. if an excrption is occured then 1.
call a CALLBACK function in a DLL 2.print the log message return from function
call but excute the next instruction in the current function(when i return i 
want to go to the next instruction,not the instruction that was raised an 
exception) i know want to know using structured excpetion handling and some 
assembly language instructions can we do this?. can some body help... -   
Sat,  Sep 18 2004 1:03 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6c92e413959f500c

linux speaker beep - 6 new
----------------------------------
[EMAIL PROTECTED]  scribbled the following: ... If you want comp.unix.
programmer, you know where to find it. ... -   Sat,  Sep 18 2004 1:15 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a0e2a5a961920995

union access - 3 new
----------------------------------
... Whether it "deserves" a better answer, in your jaded opinion, the fact is 
that the OP has been fortunate enough to *receive* a better answer, thanks to 
the likes of Chris Torek et al; and not thanks to you. IMO the question is 
perfectly appropriate for clc (once rendered appropriate, by s/classes/structs/
, that is). If you have no answer to offer, only insults, then the rules of 
Netiquette require that you keep your trap shut, Dan. You ought to know that.
... Not at all. The OP may know that they are... -   Sat,  Sep 18 2004 2:34
am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ae5339a09d904e21

srand() troubles - 7 new
----------------------------------
... K&R2, APPENDIX B, p.252 int rand(void) rand returns a psuedo-random 
integer in the range of 0 to RAND_MAX, which is at least 32767. ... -   Sat,
  Sep 18 2004 5:26 am
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cbe4162622b4bab5

Loop Optimization, Array Alignment - all new
----------------------------------
kal wrote: ... That seems fine to me. I'll restate the original conditions: 
For the following loop R=(evaluate here); // float N=(evaluate here); //
N min=1 max=100 median=66 for (i=0;i1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1184fe1e93506839

Out-of-bounds access and UB - 3 new
----------------------------------
Hello, Someone posted the following code to a different group: void function
2(int a, int b, int c) { int exchange; char buffer[3]; char *bufPt; 
buffer[0] = 'A'; buffer[3] = 'B'; buffer[40] = 'B'; bufPt = buffer; 
bufPt = bufPt + 1; ... Note: buffer[3] and buffer[40] are out-of-bounds. I 
answered: "[...] I believe 'function2' has undefined behavior. In other words,
the compiler is free to do anything it wants [...]" Then someone commented: "
No. Technically the program is fully conforming. It is executing the program 
that... -   Sat,  Sep 18 2004 6:12 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aa60e124041ec9c9

Tips on gaining proficiency in C - 4 new
----------------------------------
... There was a course in C, which took us through the language. That was in 
the 1st year of the 4 yr course. Unfortunately, the course was more bookish, 
and did not have too much practical value. To answer your question, yes, I do
know what C is, what its syntax is, how pointers work - all on the high level.
However, not having applied it too much to test my knowledge, and now, being 
out of touch for 4 years, it is mandatory that I re-learn it with practical 
experience. (Which is why I asked for pointers to projects). Unless this... - 
 Sat,  Sep 18 2004 6:35 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d4264dd7b9939f9

How to find out if an int has no value - 22 new
----------------------------------
I've really tried searching for this before I thought of bother you guys with
this question. It's such a simple thing, but it's driving me nuts! Is it 
possible to check if an int (or any other type) has no value. something like: 
int i; .. .. .. if (i==NULL){ ...... ... I know this doesn't work and I 
know NULL is a pointer. Is there any way this can be done? TIA. ... -   Sat,
 Sep 18 2004 7:49 am
22 messages, 12 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a20f9e4e4a3adcad

Floating point number to binary - 2 new
----------------------------------
... Given float and unsigned int are both 32 bits wide (on my system).. union
{ float f; unsigned u; ... flt.f = 1.0; Now, examining flt.u we find 
it's 32 bits look like.. 00111111 10000000 00000000 00000000 Still as flt.u 
we split it up to its float components. Exp = 127 (1) ... Having assigned to
flt.f, does examining flt.u cause problems? Clearly we are allowed to examine
flt as.. unsigned char *ft = (unsigned char *)&flt; ..and examine ft[0] 
through ft[3] without problem.... -   Sat,  Sep 18 2004 7:53 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e706d56b01a84359

free() dumps core with a segfault. - all new
----------------------------------
... Here I should write long in a x86 CPU? ... (for references see K&R2 
chapter 8.7 ) the case is this function that print like |v=67868 u=8080|0|v=x 
u=etc (*if* free_mem() free all memory and more than 1024*sizeof(Header)=
Nalloc*sizeof(Header) bytes allocated ) void leggi_mem(void) {Header *u,
 *v; unsigned j; /*----------------*/ for(u=freep; u!=0 ; ) ... ... -
   Sat,  Sep 18 2004 8:26 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/69917295e9776154

declaring a function only if it isn't already declared - all new
----------------------------------
... I just use header file for each function. Each header file has something 
like: // This is file name MyFunc.h ... I use #include to include the 
function's header file in each compilation unit that wants to refer to the 
function (either wanting to call the function or just get the function's 
address). The "MY_FUNC" preprocessor symbol is simply the uppercase 
representation of the function name, and the header file name is simply the 
function name followed by ".h". ... -   Sat,  Sep 18 2004 8:47 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63a8a01635f04759

Comparing Linux C and C++ Compilers: Benchmarks and Analysis - 5 new
----------------------------------
Hello, I've posted a comparison of recent GCC versions (3.3, 3.4, and the 
coming 4.0) with Intel C++ 8.1, including several benchmarks and "state-of-
the-product" reviews. You can find the article at: http://www.coyotegulch.
com/reviews/linux_compilers/ The above article replaces an older article I 
published in late 2002. This new comparison marks what I hope will be an 
ongoing series that tracks the quality of Linux compilers. ..Scott ... -   
Sat,  Sep 18 2004 10:07 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5dbb9ae19db772cb

C library VS (Unix) System calls ? - all new
----------------------------------
[snips] ... ... Nor are they C. :) ... Then they'd be third-party extension
libraries, rather than the C library, right? ... -   Sat,  Sep 18 2004 10:
39 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e9d56b80673b6d31

ping source code - 3 new
----------------------------------
... And the server typically determine the Content-Type by the extension. (
Unless it's script-generate, in which case the script generates the Content-
Type header.) Once again, it's the ".html" extension put there by the person 
who put the file there. The server is doing what it was told -- send it as 
HTML. ... -   Sat,  Sep 18 2004 10:08 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/224b55f45e882482

declaring array of pointers - 4 new
----------------------------------
Hi, I'd be grateful if someone could clarify this for me. In the linked list 
structure my intention is to declare an array of length 3 containing pointers 
to node eg. Node *Iterators[3] The compiler seems to interpret this as a 
pointer to an array of 3 nodes instead. This interpretation ensures that the 
second assigment to mynode below fails compilation with the given message. 
Could someone explain to me how to correctly declare an array of length 3 
containing pointers to node cheers ... typedef struct Node {... -   Sat,  
Sep 18 2004 3:37 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/91750f2a96517ca0

compilers & stack machines - 5 new
----------------------------------
Aside from comp.compilers, is there any other forum, newsgroup or medium where
I can post questions concerning the development of a byte code compiler & 
virtual stack machine? ... -   Sat,  Sep 18 2004 7:47 pm
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a7c3ace6fd5013d8

Developing chat application - all new
----------------------------------
Hello, I've assigned to develop a simple chat application using "C" program. 
I've written program but missing one thing. Simultaneously both user can type 
in their window. But i dont know how to implement this, in such way that at 
all the time, same thread/process should be able to send and recieve message 
from/to between their desination. I've written code, in that once the user1 
typed the message, it cant send an another message untill it gets a message 
from the user2. Becoz i 've coded as receive and send in user2, and... -   
Sat,  Sep 18 2004 9:38 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4c0d871f32f30e0b

 

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

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

comp.lang.c

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

Change your subscription type & other preferences:
* click http://groups-beta.google.com/group/comp.lang.c/subscribe

Report abuse:
* send email explaining the problem to [EMAIL PROTECTED]

Unsubscribe:
* click http://groups-beta.google.com/group/comp.lang.c/subscribe


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

Reply via email to