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

Today's most active topics:

* How does C cope if architecture doesn't address bytes? - 8 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/30200c2a3cb93e0a

* Bitwise idioms - 7 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a3e4be9ced83cea7

* derangement: coding review request - 6 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c5271ccb9149a

* Stuck with a strange core (C code) -- Please help. - 6 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/40901c21e3f7e563

* trigonometical,rad,acos... HELP please - 5 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f86e57784f092cd2

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

Modify Static Data Okay? - 2 new
----------------------------------
... This is static, not const. You can modify a static variable as much as 
you like. Static is how long the variable lives. Now you are not really 
modifying the string literal, that you cant do. But pointing the pointer 
elsewhere in your example. ... -   Sat,  Nov 13 2004 12:48 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/38a3bbbb875bc9ac

Bitwise idioms - 7 new
----------------------------------
Hi, I am having problems understanding bitwise idioms that I see frequently 
in source code. I understand that they work at the individual bit level and 
that 0 | 1 = 1, 1 & 1 = 1 and so on (understand what all the operators mean),
but when I try bit banging code it inevitably fails to get the result I 
wanted. I am trying to put together a packet to query a DNS server. I 
understand there are potentially little vs. big-endian problems, but TCP/IP 
Illustrated shows where the least and most significant bits are ... -   Sat, 
Nov 13 2004 12:48 am
7 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a3e4be9ced83cea7

derangement: coding review request - 6 new
----------------------------------
On Sat, 13 Nov 2004 00:21:44 -0600, in comp.lang.c , "Merrill & Michele" ... 
Anything is ok as long as the prototype matches the definition, and the 
function call matches the prototype. This generally restricts how you do it to
sensible forms. ... A function can't have two parameters with the same name,
because its a redefinition of the parameter. Do you actually have a book 
about C? ... -   Sat,  Nov 13 2004 12:54 am
6 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c5271ccb9149a

Character arrays - 3 new
----------------------------------
... AFAIK it will not proceeed further well Your Compiler must(Will) give 
The error as soon it starts to compile the Above staement. You Are declaring
the char s[0] of Zero lengh. and this is not possible. If you really want 
to get your concept clear then go through the Book K&R and solve the problem
2.5 you will be clear with all the Functionalites. or write the program 
which read only 20 characters. dont use any libraray function except the 
printf statement you will get all the points(doubts) clear. ... -   Sat,  
Nov 13 2004 1:07 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d7360ceb0613160

What does "void (*vector[])( )" means? - 3 new
----------------------------------
... void (*vector[])( ) can be simplied (in terms of readability) as typedef
void (*PF) (); PF vector[]; ... -   Sat,  Nov 13 2004 4:30 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/848452dc513d5704

How does C cope if architecture doesn't address bytes? - 8 new
----------------------------------
 My K&R 2nd ed has in the Reference Manual appendix, A7.4.8 sizeof yields the
number of BYTES required to store an object of the type of its operand. What 
happens if C is running on a machine that addresses larger words only? 
Shouldn't sizeof be defined to return the smallest number of 'storage units' 
required to store an object of the type of its operand? As a general point, 
is there a guide to what aspects of C would fail if run on a machine which is
not 8-bit byte addressed? IIRC the some of the Crays ... -   Sat,  Nov 13 
2004 5:14 am
8 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/30200c2a3cb93e0a

Unexpected repeating of my output function - all new
----------------------------------
Hi, Thank you very much for all your help! Since I don't have as much free 
time I focused only on the "major" error--the problem with scanf. After 
searching and thinking for a good while, I decided the best way to solve it is
to understand scanf fully--so I searched C++ reference guide-those things, and
decided that scanf(" %c",&command); (Note the white space between " and %) 
May work, and at least, the "repeated output" problem have gone now. If this 
is the correct answer, please reply, or else, please point me... -   Sat,  
Nov 13 2004 5:28 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8a98151730757f64

trigonometical,rad,acos... HELP please - 5 new
----------------------------------
this function should return the degrees of the (AOB) angle. I tested it on a 
value of 30° and it returned 36,869896, with the points declaration: a.x=0;a.y=
0; b.x=3;b.y=4; c.x=0;c.y=4; and the call to the function: alfa =winkelgroesse(
b,a,c); here is it: float winkelgroesse(punkt m,punkt o,punkt n){ float a,b,c,
alfa; c=powf(m.x-n.x,2)+powf(m.y-n.y,2); a=sqrtf(powf(o.x-n.x,2)+powf(o.y-n.y,
2)); b=sqrtf(powf(o.x-m.x,2)+powf(o.y-m.y,2)); alfa=acosf((powf(a,2)+powf(b,2)-
c)/(2*a*b)); alfa=180*alfa/PI; return alfa; }... -   Sat,  Nov 13 2004 5:32 
am
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f86e57784f092cd2

nonzero != 1, right? - all new
----------------------------------
... Any of the operators < > == != <= >= && || ! returns either 0 (to mean "
false") or 1 (to mean "true"). Therefore an expression where any of the above 
operators is the "top operator" evaluates to either 0 or 1. ... No. This _is_
already an integer with one of the values 0 or 1 in any context. You are 
confusing "outgoing" values and "incoming" values. "outgoing" boolean results 
are always 0 or 1. If an expression <E1> is used in if(<E1>) while() ... 
i.e. if some value is to be *interpreted* as a "boolean", then it is... -   
Sat,  Nov 13 2004 8:17 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/26814eeabc379360

Stuck with a strange core (C code) -- Please help. - 6 new
----------------------------------
Hi, I've hit this core multiple times when running an application (coded in C)
 running on BSD OS. Using gdb getting to the core, it shows: .... (gdb) bt ...
 type=1) at ../../rsvp/eventwheel.c:536 ... ... Notice that the address (
0xd7f5a00) of "unacketd_cb" (pointer of a struct) at level 2 is passed to the 
function of mTimerInsert as "param". But "param" becomes 0xd7f5a01 (which 
added a "1" at the end). All the subsequent processing is based on this wrong
address causing the core. The application is compiled with gcc with... -   
Sat,  Nov 13 2004 9:47 am
6 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/40901c21e3f7e563

fscanf - 3 new
----------------------------------
(please forgive me i don't know how to find older messages if this is already
answered) I am trying to understand why fscanf( fp, "%s=%s\n", str1, str2); 
doesn't work when I am trying to read from a text file the following ... key
2=value2 ... I can see that leaving a space before & after `=` it works. 
Shouldn't fscanf see that? I know i have to tokenize any line of the file 
with strtok() if I don't want to use the space but i am just curious. ... -
  Sat,  Nov 13 2004 11:18 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/edf53310a188eebf

has anyone followed sedgewick's "algorithms in c parts 1-4"? - all new
----------------------------------
has anyone got or read this book: robert sedgewick "algorithms in c parts 1-4"?
 i'm having an absolute nightmare with the book. amoung other things i'm 
trying to construct the necessary support files needed to make use of the 
example programmes. (support files as in .h .c files that are ... the 
programmes are designed to use abstract data types so that you can drop in 
different versions of the support files and the main programme will work 
happily with the various types (support files that handle types int, double, 
variable length strings... -   Sat,  Nov 13 2004 11:39 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/33d33976ce524504

Simple vsscanf source code? - 2 new
----------------------------------
 "Ray Mitchell"  wrote ... this ng, so if he's reading this I'm sure he'll be 
happy to give you more information. ... -   Sat,  Nov 13 2004 12:32 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/920992148366b9db

using pthread to receive data on a socket and simultaneously play it using /
dev/dsp - 2 new
----------------------------------
Hi, I am writing a client for a real time audio streaming server. I am using 
pthread for that. I have one thread receiving data on a socket from the server.
 After buffering some data, other thread wakes up (checking how much data is 
in the buffer) to play the music. The problem is that when the 2nd thread is 
playing, the first thread is not able to receive data from the server. If the 
server sends the data slow, then there will be breaks in the audio. How do I 
solve this problem? Thanks. ... -   Sat,  Nov 13 2004 2:29 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9ba471661ab6fc97

getting variable type in C - 3 new
----------------------------------
Hi, I am pretty sure this is not possible, but maybe somehow it is. Given a 
variable, can I tell what type it is at runtime? Michael ... -   Sat,  Nov 
13 2004 8:28 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3c5bebf4c0625e0b

 

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

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