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

Today's most active topics:

* lcc-win32 - 31 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/60059ee1489ebe79

* Free C\C++ compiler - 13 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4aca51d9a5903ba5

* Where can I find the implementation code for a function in C language? - 13 
new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a1b889c0a5be90f7

* stdout not open? - 8 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d8537fea22f8858e

* Variable number of parameters in a function call? - 8 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b1f87f71866c2753

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

Help! Raw Socket CheckSum - 7 new
----------------------------------
Hi guys and girls. This is my first time posting here so go easy :) . I was 
wondering if someone could please interpret how this csum() function works in 
the following C code. I know that the function returns the checksum value but 
I was wondering How. I only included the top half of the c code because you 
probably dont need the other half and also it is a syn flooding program so I 
thought I shouldn't post the whole lot. This is from the raw socket 
programming tutorial written by Mixter. Couldn't find anything... -   Fri,  
Oct 8 2004 7:32 pm
7 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eec29d698e40d848

Free C\C++ compiler - 13 new
----------------------------------
Hi, I am new to C\C++ and was wondering if there are any freely available 
compilers for these languages that I can use. Hope to hear from someone. 
Thanks. (I am working on a Windows environment) ... -   Fri,  Oct 8 2004
7:39 pm
13 messages, 12 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4aca51d9a5903ba5

byte to LONG - 6 new
----------------------------------
... ... -   Fri,  Oct 8 2004 8:15 pm
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4766398d62071600

stdout not open? - 8 new
----------------------------------
... Gcc shouldn't overwrite system headers if installed with a --prefix of /
usr/local or /opt/gnu. I'm using both cc and gcc on several Solaris 8 
installations without problems. Overwriting of system headers is probably a 
side-effect of building gcc with --prefix=usr, but you're right that we don't 
know if this is true for the particular installation. HTH, Giorgos ... -   
Fri,  Oct 8 2004 9:34 pm
8 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d8537fea22f8858e

What is a type? - 2 new
----------------------------------
... ... snip about snarky ways to implement it ... The whole point about 
making definitions and using them, defining structures, etc. is to make it 
easy for the implementor to change his mind, without destroying the users code.
 One you start playing wierd games you make the whole system more error prone.
 We already have a well known vendor of windowed OSs that does that, with 
abysmal results. So "without incorporating magic numbers" is not a 
requirement, but just good practice. ... -   Fri,  Oct 8 2004 10:16 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/dec90ce2a90b6f1b

extern and Static - 3 new
----------------------------------
Any variable declared outside function scope has permanent duration, if that 
is what you are trying to achieve - so apart from using static illegally, 
there is no need for it (in the case specified). You might want to use it to
hide the variable. ... -   Fri,  Oct 8 2004 10:17 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/91f0e1e73c85cd7d

How to create shared memory ? - 2 new
----------------------------------
... Please point out where memory mapped files, or dlls, are mentioned in the 
C standard. I.e. kindly don't post off-topic answers to off-topic queries in c.
l.c. ... -   Sat,  Oct 9 2004 12:49 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e7d22d8dfe9158f8

lcc-win32 - 31 new
----------------------------------
... There are myriad libraries (but not standardized libraries) available for 
those things. I have provided one for hash tables, others have provided ones 
for the other items you mentioned. Mine is written in standard C, and thus 
should port everywhere. Yours don't, and thus are off-topic here. ... -   
Sat,  Oct 9 2004 12:49 am
31 messages, 11 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/60059ee1489ebe79

What type is a structure? - 5 new
----------------------------------
 "damian birchler"  wrote ... char name[1024]; /* name converted to a 
pointer */ strcpy(name, "Fred"); However structures can be passed by value. 
Eg ... typedef struct { int x; ... void foo(FOO f); int main(void) { FOO
f; f.x = 42; printf("f.x %d\n", f.x); foo(f); printf(f.x %d\n", f.x);
return 0; ... void foo(FOO f) { f.x = 1; ... Normally we don't do this, 
and pass a pointer to a structure, because structures are often quite large 
and copying lots of data to the stack wastes cycles. However then foo must be..
. -   Sat,  Oct 9 2004 1:21 am
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/33cc90fe34c61af2

volatile - all new
----------------------------------
 ... Pedanticism is what I call it. ;-). -- 154 isSinNghH atT acCm dDotT 
orRg ... -   Sat,  Oct 9 2004 2:04 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b2704d28d14b6f5f

Off Topic: Why is stdprn not defined under Windows? - 2 new
----------------------------------
 ... I don't think that "unplugging the device" is necessarily "perverse". I 
have a USB device that reads memory cards. I can plug in my camera memory 
stick and copy files from it. When I want to remove the stick, I "unplug or 
eject" the media. If there is no memory stick in the device and I click "
unplug or eject", it just shuts off the SmartDisk device (the LED goes off and
the icon is removed from the taskbar). ... -   Sat,  Oct 9 2004 4:11 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/40b707dad6259a20

Array of pointer Vs Pointer to Array - 2 new
----------------------------------
Thx for every one, replied to my query. First of all it was my typo. Last 
week i attended one interview. I have explained correctly, by putting the 
diagram how it stores. Then he asked "wht is the performance difference 
between these two when using in the program". I said "These two are eniterly 
different things, cant be weighted". He didnt convenience on my answer. I was
curious to know whether it can weigthed for performance point. "C" experts in 
this forum also conformed me it cant be. ...... -   Sat,  Oct 9 2004 6:16 
am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1e0c3c4e946b7f78

math(s) [back OT] - all new
----------------------------------
On Thu, 07 Oct 2004 23:50:22 -0400, in comp.lang.c , Allin Cottrell ... indeed,
 but 30 years south of the border has polluted my mind.... ... -   Sat,  
Oct 9 2004 8:18 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f2048e448484befc

Where can I find the implementation code for a function in C language? - 13 
new
----------------------------------
I am learning C Programming after working with Java for 5 years. I want to 
know where can I find the source files for C language itself. For example 
strcat is a function, which concatenates two strings. I want to read how this 
function is implemented in its native form, where can I find its corresponding
.c file. I am using gcc version 3.3.1 (Thread model POSIX) on cygwin with 
Eclipse IDE. A grep on a function name lists many .h and .c files which 
declare the prototype of the function. But how do I efficiently navigate from..
. -   Sat,  Oct 9 2004 10:09 am
13 messages, 9 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a1b889c0a5be90f7

having problems with math library - 6 new
----------------------------------
I wrote a function that should test if a given number is a palindrom, but when
I ran it in a little testprogram it behaves strange. ... int is_palindrom(
double n) { double m = 0; double x; double y; double i; for(i = 10; i <= 
MAXSIZE; i *= 10) { x = modf(n/i, &y); printf("x = modf(%lf, &y)\n\tx == %
lf, y == %lf\n", n/i, x, y); modf((x*10), &y); printf("modf(%lf, &y)\n\ty
== %lf\n", x*10, y); m += y; printf("is_palindrom: m currently is %lf\n", 
m); m *= 10; ... m /= 10; printf("is_palindrom: m finally is %lf\n",... -
  Sat,  Oct 9 2004 12:53 pm
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/37e7c18bb573ca7

Variable number of parameters in a function call? - 8 new
----------------------------------
Hi, is it possible to define a function in a way that when calling it I can 
insert as many arguments as I want? (I would neither like to define a function
with 50 default arguments nor prepare a pointer array each time before calling
the function and pass the array, though.) I imagine function calls like this:
f(a,b,c); f(d,e,f,g,h); f(a, f(b, c, f(g,h,i), e, g, i, 
c); Felix ... -   Sat,  Oct 9 2004 1:14 pm
8 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b1f87f71866c2753

In fflush(stdin), what happens to flushed data? - 6 new
----------------------------------
hugo 27, Oct 9, 2004 Ref Docs: c.l.c FAQ article 12.26 . ... Reading these 
Docs I understand that fflush does not summarily destroy or discard the 
flushed data. But it is not clear, in the case of fflush(stdin), where stdin 
is default C keyboard buffer, what actually becomes of the data. Is there a 
way to capture it? fflush( ) returns an int as status report, so one cannot 
assign fflush's return to char str[20], for insatance. Does this function take
a second argument? like fflush(stdin, str); ? hugo... -   Sat,  
Oct 9 2004 1:47 pm
6 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68690119a27e649c

How to create a bitmap? - all new
----------------------------------
 ... The format of a 'bitmap' image will depend upon the ultimate target 
display device (and typically other factors). This data could indeed be 
written to memory or to a file using standard C, but nobody could do it 
without the specification for the format. And of course actual rendering of 
the image on a display device cannot be done with standard C, because C 
doesn't presume that such a device exists. All i/o is done via 'streams of 
characters'. ... Try asking in a forum where your OS and platform are topical.
... -   Sat,  Oct 9 2004 6:46 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8508d0249a317c6a

Compiler for Windows (Open Source) - all new
----------------------------------
... I won't recommend one compiler over another, but I can eliminate your 
objection about remembering the switches: You can write batch files to 
'remember' them for you. -Mike ... -   Sat,  Oct 9 2004 6:49 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3a3f1be81286bc7a

bit masking - 3 new
----------------------------------
A recent thread discussed turning 4 given bytes in a particular order to a 
long. While studying this, I encountered K&R §2.9, where the following 
expression is said to mask off all but the first seven bits: n=n & 0177; 
This would have seemed right to me if 1+2+4+...+64 (seven terms) equaled 
something other than 127. Ideas? MPJ ... -   Sat,  Oct 9 2004 7:12 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9466a48fca0d94ad

Global variable declaration in headers - 3 new
----------------------------------
Can someone explain the scope/linkage differences between the following 4 
global declarations and when one should be used (theoretically) over the rest?
sample.h ... int a; const int b; static int c; extern int d; ... And if I 
gave 'd' an initial value, what the consequences would be (if any)? ... -   
Sat,  Oct 9 2004 11:02 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/29565adb8756b59c

what does "strict alignment" mean? - 4 new
----------------------------------
The standard says that a char* or void* pointer has the least strict alignment.
 But I do not know what is a strict alignment. What does that mean? ... -   
Sun,  Oct 10 2004 12:34 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5c580627e15f2f4

EVIL AMERICAN GOVT (aka FBI) is full of SADISTS and PERVERTS - 5 new
----------------------------------
SUMMARY: THREE YEARS of and continuing MENTAL TORTURE, TERRORISM, SADISM and
BLATANT human rights violations by FBI SADISTS and PERVERTS. Please SAVE this
post on your hard disks or email account and also bookmark it because the FBI 
sadists are gonna force the websites to remove this posting for good. I posted
this column to pretty much all "active newsgroups" three weeks ago but the FBI
"ARM TWISTED" and "FORCED" google management to "REMOVE 90% of them" from the 
USENET and violated my FREEDOM OF SPEECH.... -   Sun,  Oct 10 2004 5:39 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/50936ac526dc3143

double while loop in linked list - 3 new
----------------------------------
hi, the following while function(it´s supposed to find word synonyms out of a
list) always quits after running through the list in the inner loop once. it´s
like the aktuell = aktuell->next on the bottom would not be there. can anyone 
tell me what the problem might be? greetz, bastian int checksyn(Relations *
head) { char rel = 'S'; Relations *aktuell = head; Relations *aktuell2 = head;
while (aktuell != NULL) { if(aktuell->relType == rel) { while (aktuell2 != 
NULL) { if(aktuell2->relType == rel && aktuell2->word... -   Sun,  Oct 10 
2004 7:57 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6e19c591666d1692

Connect two pointers (arrays) - all new
----------------------------------
Hi! As the subject says i want to connect two binarys arrays with content read
out by fread. Easy: I'm looking for a strcat function which works on binary..
Regards, ...... -   Sun,  Oct 10 2004 12:27 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ffc4422a76af88bd

Linked List problem. - all new
----------------------------------
Hi, I am a newbie with C and am trying to get a simple linked list working 
for my program. The structure of each linked list stores the char *data and *
next referencing to the next link. The problem I get is that I am trying to 
link a struct that I have defined and its refusing to link. I have tried 
casting my struct into char * but attempts to cast it back to its original 
struct to access its contents only seg faults. I'd attempt to change the type
of data in the linked list to that my struct but that just doesnt seem right...
. -   Sun,  Oct 10 2004 10:39 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7db25f536a8a0c30

 

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

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