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

Today's most active topics:

* limits reached - 11 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7e99c70fa90d4208

* Help with newb's project - 7 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ad0d79201461916e

* stack size - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/56b71efc0f378064

* Problem reading struct in a file - 5 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/93a6e481816e56dc

* rola i funkcja jezyka c w terazniejszości - 4 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/742a2094f172b7f

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

derangement: code review request - 3 new
----------------------------------
... Ok, what result did I assume? (I don't believe I assumed anything.) ... -
  Sun,  Oct 24 2004 1:50 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c5271ccb9149a

simple question?? - 3 new
----------------------------------
In article <[EMAIL PROTECTED]>, ... Each 
invocation of msort() has it's own independent version of the 'n' variable. 
So you have a call graph like: main +-> ... Each function also has 
it's own copy of "count", so for each msort() but the innermost one, count 
will always end up with the value "1". Cheers, - jonathan ...... -   Sun,  
Oct 24 2004 2:45 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3c591937bedada7d

GetByte(int x, int n) - all new
----------------------------------
On Fri, 22 Oct 2004 19:43:50 +0200, Michael Mair ... ... being unsigned. ...
[guess mode] Lets assume an architecture where sizeof long == 4 and sizeof int
== 2. If you want to extract byte #2 (the byte starting at 2^(2*CHAR_BIT)) of 
the long argument, your expression will try to shift the signed integer 
constant UCHAR_MAX left 2*CHAR_BIT, which is equal to the width of int, which 
is UB following 6.5.7/3. OTOH, if you have sizeof long == sizeof int and both
> 1 and want to extract the highest byte (i.e. sizeof int -... -   Sun,  Oct
24 2004 4:05 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c5aa5da0d5dfa7f0

vulnerabilities - all new
----------------------------------
... A language doesn't have a "vulnerability." Vulnerabilities are 
properties of poorly written programs. To enumerate the ways in which a 
program can be poorly written is ... tedious. You could things like "data 
injection" and "data execution" to your list, if you wanted, but this only 
scratches the surface of the wrong things you can do in C. ... -   Sun,  Oct
24 2004 4:49 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5f5c39262f0a735e

Commenting the source code. - 3 new
----------------------------------
Malcolm  scribbled the following: ... One of our source files over at work is 
rife with comments about some obscure kludges that had to be inserted and need
to be removed in the future. But over the course of the program's development,
no one has bothered to find out what these kludges exactly are, which part of 
the code they affect, and how (or if) they can be removed. So the file still 
has comments about "This kludge should be removed by version n" when we're 
already in version n+2. Actually the... -   Sun,  Oct 24 2004 5:25 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f8fb8ea8330fb9ef

Nested Statements. - 3 new
----------------------------------
Hi, Nested statements helps to generate complex source code, what is the 
nesting limit that you normally consider? I know that the Halsted and McCabe 
analyses can define the acceptable level, but in your personnel point of views
what is the limit before you re-code the block into multiple blocks a 3 level
nesting example If (z is true) while (x < Y ) ... else while (x < Y ) .
.. end if I think that 3 level sometimes 4 is acceptable. but I was 
wondering would you restrict it to 3 or 4? is there anyway to avoid this 
excluding the... -   Sun,  Oct 24 2004 6:10 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/109fb256fab0acc7

OT: Interesting coding idea - 2 new
----------------------------------
... It would be a bitch to code for such a machine, but it sure would be 
interesting. ... -   Sun,  Oct 24 2004 7:23 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e611d0a5242f22c0

stack size - 6 new
----------------------------------
With gcc how do I increase the space available for the stack ? ... -   Sun,  
Oct 24 2004 8:03 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/56b71efc0f378064

Help with newb's project - 7 new
----------------------------------
... `info libc` says puts() returns EOF on error. Your program's return value
is well defined it seems to me. Cheapskate. I bid $105 an hour. ;) ... -   
Sun,  Oct 24 2004 8:34 am
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ad0d79201461916e

rola i funkcja jezyka c w terazniejszo&#347;ci - 4 new
----------------------------------
rola i funkcja jezyka c w terazniejszości esej ... -   Sun,  Oct 24 2004 12:
36 pm
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/742a2094f172b7f

limits reached - 11 new
----------------------------------
Hi all, ... number of ones required when writing out all numbers between 0 and
n. For eg: f(13)=6. Notice that f(1)=1. What is the next largest n such that 
f(n) =n. To solve this, I wrote the following program: ... { ... any output.
Is it feasible to try out such a program? How should I approach this otherwise?
 Regards, Senthil http://sarovar.org/projects/uthcode/ ... -   Sun,  Oct
24 2004 1:31 pm
11 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7e99c70fa90d4208

Pointers to structure and array of structure. - 3 new
----------------------------------
how to convert these two notation in pointer form: 1 - list[count] = value; (
explaination) - list is an array of structure of type M. - count is integer 
index - value is a structure of type M. 2 - tmp = list[i]; - tmp is 
structure of type M - list is similar to above mentioned list - i is an 
integer index ... -   Sun,  Oct 24 2004 1:54 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/26e7369611d6c5e0

cmsg cancel <[EMAIL PROTECTED]> - all new
----------------------------------
Article cancelled by author ... -   Sun,  Oct 24 2004 2:43 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2b8e29d0be63ce06

Problem reading struct in a file - 5 new
----------------------------------
Hi again guys, I've decided to cut my project in section and I found it way 
easier like this. I'm having a little problem reading struct in a file though.
I think after this I'll be able to handle it on my own. Right now the file 
is opened correctly and I'm able to read each line and print them in a new 
file. My problem is to insert each struct (which are made of 6 consecutive 
lines) as an item in my array. [CODE] for(i=0, j=0; c[i]!='\t'; i++, j++) { /*
 Loops until a tab character is reached */ books[num_books].title[j] = c[i];...
 -   Sun,  Oct 24 2004 4:41 pm
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/93a6e481816e56dc

What's wrong in my function of reverse the doubly linked list with dummy node.
- 2 new
----------------------------------
I need to reverse the doubly linked list with dummy node. I think the solution
is to exchange each node pointers' next and previous address. But what's wrong
in my function? Thanks void reverse_list(NodePtr p) { NodePtr next, q=p, head=
p->prev; while (q != head) { next = q->next; q->next = q->prev; q->
prev = next; q = next; ...... -   Sun,  Oct 24 2004 6:27 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/744446bcea4dc324

Please help with newbie code - all new
----------------------------------
On 17 Oct 2004 16:43:56 -0700, "whisper"  wrote: ... is prototyped by math.h)
_divided_ by log(10), and the division should be done in floatingpoint (not 
cast the operands to int) for most accurate results. And you need to special-
case zero, if you want to allow that as a value, since log(0) is 
mathematically erroneous. Or you can use sizeof(int) * CHAR_BIT +1 for a 
conservative estimate, that is sometimes larger than needed but never too 
small; that also gives a fixed value that you can allocate at... -   Sun,  
Oct 24 2004 10:39 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/916d0665d3804e1

Clearly, it is too late to fix c99 - C is dead - all new
----------------------------------
On Fri, 15 Oct 2004 02:38:36 -0600, Chris Barts  wrote: ... ... of as the 
natural solution to any but the weirdest problem. For me the original control 
structures, used in the "obvious" way, are clear enough, although when you (
need to) change the algorithm even modestly you often must rearrange the code (
e.g. put a sentence, or PERFORM body, out-of-line) which is what I meant by 
"fragile". And as I said, COBOL-85 adds "properly structured" forms: IF 
condition THEN body can contain nested... -   Sun,  Oct 24 2004 10:39 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2294ba70f0949aae

hexadecimal - all new
----------------------------------
On Sun, 17 Oct 2004 22:40:03 -0500, Artie Gold ... the OP's implementation, 
and lX unsigned long, which is correct. Turning up warnings only helps on one
compiler I know of, although a very widespread one. This is not a required 
diagnostic in the standard, and not commonly implemented, although rather nice.
 (Posting to c.l.c however will get you all kinds of diagnostics no compiler 
provides, or likely ever will or can. <G>) - David.Thompson1 at worldnet.att.
net ... -   Sun,  Oct 24 2004 10:39 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/423da4fecaea85df

Safer and Better C - all new
----------------------------------
... used (in COBOL, Pascal, and Ada, and informally in F9X) to mean the 
parameter-passing mechanism or form (value, reference, in, out, etc.) Since C 
only has by-value-initialized, you can't mean that. It sounds like you mean 
values, or ranges, or combinations of such, that are representable in the 
declared types but not valid for the callee. ... Note that 'restrict' even 
when implemented does not ENFORCE anything, or at least is not required to and
actual checking in nontrivial cases would be costly so implementors are 
unlikely... -   Sun,  Oct 24 2004 10:39 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8313ab0630871577

C to Java Byte Code - all new
----------------------------------
In article <[EMAIL PROTECTED]>, ... Like I said before, all 
scalar types are 32-bits long which includes char, int, short, long, and float.
 And for now the same applies for double and long long as explained in the 
restriction file that comes with MPC. Napi... -   Sun,  Oct 24 2004 11:49
pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cfcf087b5a5e5192

C to Java Byte Code - 2 new
----------------------------------
In article <[EMAIL PROTECTED]>, ... Yes, you can.
 But some people prefer C to Java and there are many C programmers out there 
I believe. It has been around since 1969 starting at Bell Labs.. ... File 
system mgmt is covered, while the other APIs we still working on. We try to 
use available APIs written in Java and interface to them using the C syntax. 
This was what we did with the File System Mgmt, i.e., using the ones available
from J2SDK. MPC is still in Beta, so it's still work in... -   Mon,  Oct 25
2004 12:00 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4

Can a double always represent an int exactly? - 2 new
----------------------------------
... ... float divide_me(float f){ ... int main() { ...... -   Mon,  Oct 25
2004 12:12 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c95ebe8b3d2253a

executable and GDB - all new
----------------------------------
Groovy hepcat CBFalconer was jivin' on Thu, 21 Oct 2004 07:22:23 GMT in comp.
lang.c. Re: executable and GDB's a cool scene! Dig it! ... Um..., okay. 
Seriously, though, am i the only regular here who gets tired of telling 
newbies to post their code? Anyone with any sense at all would show the people
they're asking for help the thing they need that help to fix. That makes sense
to me; but apparently not to the multitudes of new posters who come and go 
here day after day. ... -   Mon,  Oct 25 2004 12:17 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/edebab5aa38f6cc2

Unexpected repeating of my output function - all new
----------------------------------
Groovy hepcat Tom Lam lemontea was jivin' on 22 Oct 2004 01:02:04 -0700 in 
comp.lang.c. Unexpected repeating of my output function's a cool scene! Dig it!
 ... I know, with about 80% certainty, what the problem is without even 
looking at your code yet. This is addressed by the FAQ read before posting. 
I'll give you a clue: it's to do with your input. When you are inputting, how 
many keys do you actually press to enter one single-letter command to your 
program? ... You need the following too, for rand().... -   Mon,  Oct 25 
2004 12:17 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8a98151730757f64

k&r Ex1-24 without stack - all new
----------------------------------
Groovy hepcat Merrill & Michele was jivin' on Thu, 21 Oct 2004 11:36:38 -0500 
in comp.lang.c. Re: k&r Ex1-24 without stack's a cool scene! Dig it! ... No,
 no, Daniel made the joke, and one alluding to the way (or *a* way, at least) 
to do the parsing required to check for syntax errors. And humour is always 
on topic. :) ... -   Mon,  Oct 25 2004 12:17 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7ff11d2526b40b34

 

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

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