comp.lang.c http://groups-beta.google.com/group/comp.lang.c
Today's most active topics: * malloc and free - 23 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/47993895d01f543f * How to retrieve the name of the file from a FILE * - 22 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/301e181597d2c4fa * Safer and Better C - 16 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8313ab0630871577 * Off Topic: Why is stdprn not defined under Windows? - 14 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/40b707dad6259a20 * lcc-win32 - 14 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/60059ee1489ebe79 Active Topics ============= Linkerproblem with mcal/datetime.h - 2 new ---------------------------------- Hi everybody, I haven't found any fitting previous question/answer, so I need to bother you. I can't figure out where the problem lies therefor I post the entire code of my program, followed by the error output of gcc: ... int main( int argc, char **argv ) { int y = 1980, m = 9, t = 28, doy; struct datetime *date; dt_now(date); doy = dt_dayofyear(date); dt_setdate(date,y,m,t ); if(dt_dayofyear(datum) == (doy+2)) { printf("2 days left")... - Thurs, Oct 14 2004 11:29 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a172fdc1d83e5433 malloc and free - 23 new ---------------------------------- Ed wrote: ... Magic. ... Someplace secret. None of your business, seriously. How a particular implementation does it is highly platform-specific and of little or no use to the programmer. Brian Rodenborn ... - Wed, Oct 13 2004 10:38 am 23 messages, 14 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/47993895d01f543f Variable size arrays and pointers - 5 new ---------------------------------- ... ... You have measured the difference, haven't you? My simple tests show that for unoptimized compilation with gcc the difference between accessing an array-of-double through a "single" or "double dereference" was about 1% of total program run. I wouldn't call that a "disaster", rather a measurement error. Using variable size array, the program ran 20% slower. I just can't imagine how an additional dereference could make a difference beside other operations that must be there, such as multiplication.... - Wed, Oct 13 2004 1:50 pm 5 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/71085f5257222ef7 Off Topic: Why is stdprn not defined under Windows? - 14 new ---------------------------------- ... A file is anything whatsoever that meets the language specifications for functions that operate on files. This is much hazier for C than for Pascal, where the characteristics of files are carefully spelled out, and thus omit some abilities available (at times) in C files, such as positioning. It is up to the implementor to create code (in any language) and hardware to perform such an interface. Files provide the fundamental communication path between the program and the outside world. ... - Wed, Oct 13 2004 2:54 pm 14 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/40b707dad6259a20 Libraries to handle common tasks - 2 new ---------------------------------- Hi, Can you advice on a lightweight library to handle the following tasks: - String manipulation (arbitrary length strings) - Collections (sets, hash tables) I am using FreeBSD and gcc. Thank you ... - Wed, Oct 13 2004 5: 06 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/570ee46ef8325b97 Newbie C++-to-C Q... - 7 new ---------------------------------- ... Recent versions of gcc support the C99-style boolean types. If you have a "#include ", you can use the type bool and the constants true and false. Without that, you can use _Bool and the constants 1 and 0. (This may also depend on the runtime library, which is separate from the compiler.) Since this is probably a fairly recent addition to gcc, it shouldn't be considered portable. C90 doesn't explicitly support boolean variables, but it's easy enough to roll your own. See section 9 of ...... - Thurs, Oct 14 2004 12:27 am 7 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c7f184e209da4619 lcc-win32 - 14 new ---------------------------------- ... Where is "root access" specified in any C standard? ... - Wed, Oct 13 2004 2:54 pm 14 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/60059ee1489ebe79 Floating-point bit hacking: iterated nextafter() without loop? - all new ---------------------------------- I am having trouble with floating point addition because of the limited accuracy of floating types. Consider e.g. x0 += f(n) where x0 and f are of some floating type. Sometimes x0 is much larger than f(n) so that x0 + f(n) == x0. For example, x0 could be 2**300*(1.1234...) while f(n) is 2**100*(1.4256... ). If x0 + f(n) == x0 I still sometimes want the addition of f(n) to x0 to have some effect on x0. A good solution seems to be to update x0 to the nth value greater than x0. Something equivalent to this:... - Thurs, Oct 14 2004 3:14 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/463d85947a9395d9 newbie: array-length - 3 new ---------------------------------- ... chars (a zero terminated string). You could also write it like that: char test[] = "abc"; Note that when working with strings you wouldn't compare to NULL, but to '\0'. They are exactly the same, but it is common practice to compare to NULL with pointers and to compare to '\0' with strings. The length of any such array can be determined with the strlen function: ... size_t strlen(const char *s); ... - Wed, Oct 13 2004 2:13 pm 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f8fcf437ad80f925 bit masking - 13 new ---------------------------------- ... Neither C90 nor C99 is "wrong". The C90 standard describes a version of the C language; the C99 standard describes a later version of the C language. Both are correct (modulo some minor internal inconsistencies), even though they differ from each other. They're not variant attempts to describe some common external reality, they're definitions of two different things. ( Comparison to creation stories is left as an exercise.) [...] ... See section 11 of the C FAQ, particularly 11.1, at of date, but there's a more recent gzipped... - Wed, Oct 13 2004 1:46 pm 13 messages, 6 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9466a48fca0d94ad [ot]Re: #define and external static - 3 new ---------------------------------- ... For me, it's always been simpler to consider the word "radian" as meaningless in mathematic expressions. From there, it follows that the symbol for degrees is a numeric constant. /* BEGIN new.c */ ... int main(void) { ... /* END new.c */ ... - Thurs, Oct 14 2004 4:50 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4bdfd8881444bcd5 arbitrary array index range? - 4 new ---------------------------------- ... int* p = ((int*)malloc(10*sizeof(int))) - 1; ... And it will work with every ANSI/ISO compliant C compiler. ... According to the ANSI/ISO standards, p is undefined! ... - Wed, Oct 13 2004 5:09 pm 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ace3b99f14b1bc78 How to retrieve the name of the file from a FILE * - 22 new ---------------------------------- ... How do you get the inode of the file from the corresponding FILE structure? All the Unix implementation cares about is the file descriptor returned by the open() call. But even if you get somehow the inode number, you can have as many file names connected to the same inode as you want under Unix. They are called hard links: fangorn:/bin 23> ls -l -i gunzip gzip zcat 240249 -rwxr-xr-x 3 root root 53076 2003-03-14 01:16 gunzip 240249 -rwxr-xr-x 3 root root 53076 2003-03-14 01:16 gzip... - Thurs, Oct 14 2004 8:08 am 22 messages, 15 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/301e181597d2c4fa Free C\C++ compiler - 5 new ---------------------------------- ... Just for the record, his posts are almost all off-topic in comp.lang.c as well. Since he sees fit to flog his non-standard compiler in clc, he probably is expanding his horizons to pollute clc++. ... - Wed, Oct 13 2004 9:51 pm 5 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4aca51d9a5903ba5 offset of a member inside a structure - 9 new ---------------------------------- I am trying to find the offset of a member "mbr" inside a structure "str" as follows: offset = &(struct str *)0->mbr; But, on compilation I get the following error: cc: Error: m1.c, line 55: In this statement, "0" has a signed int type, but occurs in a context that requires a pointer. (needpointer) Can anybody point out where the problem is ? Thanx for any help in advance.... ... - Thurs, Oct 14 2004 6:04 am 9 messages, 8 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/26a1930dff135b43 how much of C is enough? - 7 new ---------------------------------- ... be a shame to just read one ;-) Well and there is a bit beyond Standard C available, so at least one should look after the books treating those areas + books about general programming principles are worth reading too. Regards Friedrich ... - Thurs, Oct 14 2004 12:45 am 7 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/46cc1ae858060d89 Question about char pointers init to const strings - 4 new ---------------------------------- ... In the above line, the string literal "abc", converts to a pointer to a string. The pointer a, is initialized with that value. (sizeof a == sizeof &" abc") Attempting to overwrite that string is undefined behavior. Other references to "abc" in the same program, may refer to the same string or different strings. ... In the above line, a is array of 4 char which is initialized with the values of 'a', 'b', 'c' and '\0'. (sizeof a == sizeof " abc") ... That doesn't mean anything in C. ... - Thurs, Oct 14 2004 5:30 am 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ab43231832c8fe03 Index out of bounds question - 9 new ---------------------------------- ... Since, as far as I know, PJP doesn't have a compiler to advertise, telling him not to advertise it wouldn't do much good, would it? (Though I think Joona really meant to say Jacob Navia here.) dave ... - Thurs, Oct 14 2004 10:28 am 9 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d458cd0ea4ec6303 An error which is driving me slowly mad - 3 new ---------------------------------- Here's a problem which is driving me slowly insane. Using GCC version 3.3.1 on SuSE 9.0, I keep getting "undefined reference to `function'"-type errors for no apparent reason! It's driving me bonkers. Here's a tiny sample program which reproduces the problem. I've also included an extract of the shell session I used to launch it (so you can tell me if I'm missing any crucial commandline parameters), and an excerpt from the -aux-info dump which seems to say that the function in question WAS in fact defined.... - Thurs, Oct 14 2004 1:12 pm 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/bc8b3e342410ba4f OT: why segmentation fault when copying a character? - 4 new ---------------------------------- In article <[EMAIL PROTECTED]>, ... Generally, the compiler and linker have almost complete control over this, and merely leave instructions for the OS and dynamic linker to follow. ... On UNIX, it's typically the "read-only data segment", or ".rodata". During linking, this will usually be merged (along with ".init", ".fini", and any number of other read-only segments) with "text" segment into a "program header" covering all of the read-only loadable segments. You can view this by using (on... - Thurs, Oct 14 2004 4:25 pm 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/bae63478f0cccb85 A graph application - 6 new ---------------------------------- [EMAIL PROTECTED] (candy) wrote in news:f47acabd.0410130922.6d38bf34@ posting.google.com: ... Me either. We'll help you with the C language, but not with writing project code. Graphing is typically not part of C unless simple text based "graphs" are sufficient. ... Never thank in advance, you may not get what you asked for and you'll have wasted a perfectly good thank you. ... - Wed, Oct 13 2004 11:39 am 6 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7ef3dcd996d472dc C + Malloc - 8 new ---------------------------------- ... points to that memory. then you make pInt point to iVar, which already have storage, and the pointer to the storage allocated with malloc is lost( creating a memory leak) ... point to something which already have storage. ... - Thurs, Oct 14 2004 3:21 am 8 messages, 8 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ae32a1e39d9b3cea Scan input - But only if something has been typed - 2 new ---------------------------------- Ta guys, I'll shoddy it up with a GUI. Chris ... - Wed, Oct 13 2004 6: 24 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f18066636f672c1c get current path - 7 new ---------------------------------- ... I get: direct.h: No such file or directory There is no header in standard C. This is why we have system-specific newsgroups. ... - Thurs, Oct 14 2004 12:57 am 7 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6f360ec160bc1663 Safer and Better C - 16 new ---------------------------------- ... Type man strlcpy or man strlcat at your FreeBSD prompt. ... - Thurs, Oct 14 2004 1:25 pm 16 messages, 12 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8313ab0630871577 K&R 1.5.1 exercise - all new ---------------------------------- ... can create the command line and would likely be better served by another compiler. I'm not single-minded like George Bush in that I have single thought in my head. I'm single-minded in that I don't change horses or focus until I have to. MPJ ... - Wed, Oct 13 2004 9:45 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f77b20dad505718c Reduce duplication - 2 new ---------------------------------- ... [snip] ... ... feof() will tell you the truth after read attempt, not before (see below). ... the `i' from the outer loop. I don't think you want this, you have to use another variable. ... Will work until a.txt actually contains the word "N". ... to the end value. The rest is just plain nonsense. ... Rethink, redesign, start all over. Best on paper first. What you need is ( pseudo-code): ... count=0 while read(word) && count < MAX /* check if we have it */ found = false for i=0; i<count; ++i if word == words[i]... - Wed, Oct 13 2004 2:57 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fbc6bca4ea8e5582 When fopen() fails - 2 new ---------------------------------- ... Nonsense. ferror() set after a failed getc call means an I/O error occurred, while an I/O error is only *one* of the many reasons fopen can fail. ... The average user couldn't care less about the exact nature of the I/O error. When such information is needed, there are other, *much* better ways of retrieving it (system logging facilities). What errno setting should correspond to "bad CRC on sector 1234233 on disk 08:01"? ... Nope: an I/O error is only one of the many reasons fopen can fail. No similarity in sight... . - Thurs, Oct 14 2004 10:14 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36bb96c0349e4c1f Built-in primitives for complex - 3 new ---------------------------------- ... I note you write it 5 + 3*I whereas the OP said 5 + I*3 . Are they equivalent and/or equally acceptable? ... - Thurs, Oct 14 2004 10:40 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a8fb14c2dd2df879 Array size using pointer - all new ---------------------------------- Groovy hepcat Karthik Kumar was jivin' on Mon, 11 Oct 2004 12:13:11 -0700 in comp.lang.c. Re: Array size using pointer's a cool scene! Dig it! ... This return statement is pointless. ... That is incorrect. b is a pointer, but b[ 0] is an int. ... No, he is trying to determine the size of an array from a pointer pointing at the array's first element. But, as has been stated time and time again here, it is impossible. ... - Thurs, Oct 14 2004 4:42 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/24fc6283b76ef439 Request for code review. - 2 new ---------------------------------- Hi group, I usually don't code in C. I happened to write a piece of code that parses an input string of the form "host_name:XXXX" into host_name and XXXX. I would request the group to give me any tips, mistakes I have done, good coding practices etc. Thanks PS - I know that goto is not the recommended way of doing things, so forgive that part for now. /* * Function to parse host name and port address. * appplication_addr - pointer to string to parse, format of string is "hostname:XXXX" * ip_buffer - pointer to buffer to hold the... - Thurs, Oct 14 2004 12:16 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4f45c8c6978122b6 Floats, doubles C and MSVC - 2 new ---------------------------------- This was discussed in comp.std.c some time ago. The standard implies that casts from double to float and the other way around should be actually done, i. e. the precision should be shed and the number, even if *represented* in greter precision should be converted to 24 bit precision. lcc-win32 implements this by storing the long double format used internally into memory, then re-reading it again. The same happens with the conversion of long double to double and the other way around ... - Wed, Oct 13 2004 11:58 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cbf477ba6cf0067f Why 'sizof (CBuffer::m_pData)' doesn't work ? - 2 new ---------------------------------- ... Yes, I did. I just tried the program again with several different compilers, and it works properly with no warnings on all of them. I also ran "gcc -E" (after commenting out the "#include "), and the results looked reasonable. It looks like it dereferences a null pointer, but it doesn't really because the operand of sizeof is not evaluated (unless it's a VLA, but that's not the case here). Do you see a problem that I'm missing? ... - Wed, Oct 13 2004 4:32 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/820043448c31f7a4 problem to compile with... - all new ---------------------------------- ... Pass -lm option to your gcc. BTW 2 things a) Your issue is covered in FAQ. c) It's OT in comp.lang.c a better place would have been comp. programming. <snip code> -- Imanpreet Singh Arora [EMAIL PROTECTED] Remove Z to mail "Things may come to those who wait, but only the things left by those who hustle." ... ... - Thurs, Oct 14 2004 11:27 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/699a339d08f4a90c a simple wget in C language? - 5 new ---------------------------------- ... Thanks, but I just did not want to get to the conclusion straight away that the problem was caused by @[EMAIL PROTECTED] -- Imanpreet Singh Arora Zmoc. [EMAIL PROTECTED] Remove Z to mail "Things may come to those who wait, but only the things left by those who hustle." ... ... - Thurs, Oct 14 2004 1:54 pm 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9ad09da4d5ab1654 gcc in linux - 2 new ---------------------------------- On Tue, 12 Oct 2004 18:25:30 -0400, "Fan Zhang" wrote in comp.lang.c: ... Linux is not UNIX, UNIX is not Linux. ... Despite the fact that Linux is not UNIX, gcc on Linux continues the old UNIX tradition of pretending that part of the standard C library is not part of the standard C library. UNIX elitists do not like to make things easy for the uninitiated, unwashed masses, even when the reason for a particular piece of stupidity has been obsolete for 20 years. ... - Wed, Oct 13 2004 8:44 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/37104369ff029628 Pro*C Question - printing varchar - 3 new ---------------------------------- I have the following: varchar name[21]; ... select statement puts value into name ... .... name.arr[name.len] = '\0'; printf ("name is %s.\n", name. arr); Example of what I get when I do this I get: "name is bob." What I want is to have all the extra spaces printed out as well: "name is bob." Anyone know how to do this? ... - Thurs, Oct 14 2004 7:09 pm 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c99dce7b55bb5360 Global variable declaration in headers - 2 new ---------------------------------- Hi pete, sorry for getting back to you only now (busy today, so answers which require much thought take longer) pete wrote: ... As I said in the snipped part, I do not think it is a good technique. I do no longer have access to the code but an untested sample header file could look like that: ... /* error states */ enum ce_errortypes { CE_OK=0, CE_INVALID_INPUT, /* Easy checks ^ */ CE_START_BAD_ERRORS, /* Bad Errors v */ CE_INVALID_OP, CE_INVALID_ RANGE, CE_END ... static unsigned long int ce_statecounters[(size_t)CE_END+1] ;... - Wed, Oct 13 2004 9:34 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/29565adb8756b59c Newbie questions - Couple of VC++ questions regarding dlls and VB6 - all new ---------------------------------- On Tue, 12 Oct 2004 16:17:22 -0500, in comp.lang.c , "Merrill & Michele" ... This is a C language group, not a philosophy group. (Mark odell wrote) ... What gap? The correct english idiom (see your own later post for what an idiom isn't) is "should". I realise that english may not be your first language. . .. - Wed, Oct 13 2004 3:15 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ec708b4eed51126 Copying structs - all new ---------------------------------- ... Of course: plain s1 = s2 is just a "shallow" copy; I'm aware that to do a deep copy, if the struct contains pointers, the elements pointed to by those pointers need to be copied as well, and so on recursively. Thanks everybody for your answers. ... - Thurs, Oct 14 2004 6:13 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6f328426ee192ea8 Write only memory - 11 new ---------------------------------- In C, we have read-only memory (const), read/write memory (normal data), and write only memory. Let's look at the third one in more detail. Write only memory is a piece of RAM that can only be written to, since its contents are undefined. The program is allocating a new piece of data, and the previous contents aren't relevant. This memory is generated by malloc and friends, or allocated statically by the compiler by making the processor increase the stack area at the entry of the function. When you read from write only memory (you use... - Thurs, Oct 14 2004 2:32 pm 11 messages, 9 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e31d94370ccee765 Pointer to a Pointer to a struct - 6 new ---------------------------------- ... Joona I Palaste means "pointers to pointers" as in ** and not as in double *. Just to clarify. Read section 6 of the C FAQ (on arrays and pointers): Cheers Michael ... - Fri, Oct 15 2004 1:22 am 6 messages, 6 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/976267110bf99c54 integer index problem - all new ---------------------------------- ... I'm curious too. Radian looks like a constant and to my knowledge, it's held its value for the last 3 thousand years. Seeing whatever he has as headers might help. MPJ ... - Fri, Oct 15 2004 3:57 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b4ba7e7b7bffcff7 C to Java Byte Code - 9 new ---------------------------------- I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could stay with C and still be able to produce Java byte code for platform independent apps. Also, old programs ( with some tweaking) could be re-compiled and ported to the JVM. We have been developing such a tool over the last 2 years and currently beta testing it. It's called MPC (for Multi-Platform C) and you can download the beta... - Thurs, Oct 14 2004 8:32 pm 9 messages, 8 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4 Global access of static variable - 4 new ---------------------------------- ... to the same location, you can effectivly manipulate it. ... ... - Fri, Oct 15 2004 2:49 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2e9d7def7a6e1a86 comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) - all new ---------------------------------- Archive-name: C-faq/abridged Comp-lang-c-archive-name: C-FAQ-list.abridged [ Last modified July 3, 2004 by scs.] This article is Copyright 1990-2004 by Steve Summit. Content from the book _C Programming FAQs: Frequently Asked Questions_ is made available here by permission of the author and the publisher as a service to the community. It is intended to complement the use of the published text and is protected by international copyright laws. The on-line content may be accessed freely for personal use but... - Fri, Oct 15 2004 3:00 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aaaf3122af754a76 Clearly, it is too late to fix c99 - C is dead - all new ---------------------------------- ... Very likely true. I never fully learned the semicolon rules under Pascal, because I never fully learned Pascal. ... Again, all very true. C has set a lot of standards, and it seems that they are reflexively thought of as being How It's Done even though plenty of languages do/did it differently. ... Yes, I meant for the whole list to stand as a unit, as a list of things that were all present in C and are also all present in a lot of other languages designed since C. ... How styles change, neh? ;) And I was always... - Fri, Oct 15 2004 1:38 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2294ba70f0949aae Bitwise Operation - 6 new ---------------------------------- Hi, Can I do this? long mantissa; long x1; long x2; word a1; word a2; int exp; double result; a1= 0x1234 a2 = 0x5678 x1 = (a1 << 16) x2 =(a2 & 0x0000FFFF) mantissa= x1 | x2 so that I will have 0x56781234 result = ldexp(mantissa, exp); ... - Fri, Oct 15 2004 4:36 am 6 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9f42b0fb579cb72 EVIL AMERICAN GOVT (aka FBI) is full of SADISTS and PERVERTS - 3 new ---------------------------------- * Arnett, James: ... Off-topic, you idiot. ... - Fri, Oct 15 2004 12:41 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/50936ac526dc3143 Code Review Request: Newbie C programmer - 2 new ---------------------------------- ... ... Probably not. They simply state that a variable and a function have external linkage but are only used by one module. ... By adding `static' to the declarations of the variable and the function. (Or to the function's signature if it isn't declared before definition.) ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBcHPTBsEyCHtFPhsRAoroAJ9 BMr05eDSfItsSRfaXDX2GEfoR1ACdEzwl RFAI18SsXftFqHn8Uj14tak= =9Q7v ...... - Fri, Oct 15 2004 6:05 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fec6f1afc3222cdb K&R2 ex 1-8 - 6 new ---------------------------------- ... Fruits, nuts and Dutchmen hold places for me. ... Mistyping is a big issue with my lumberjack hands. That's one of the reasons I lean towards an IDE. ... Files will ultimately be the way I deal with data, because I loathe the keyboard, but if this code is solid, then there's a fly in the ointment. How does one enter an enter? Type really quickly? MPJ ... - Fri, Oct 15 2004 11:36 am 6 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fae03b511e832c3f How to Fail at Software Development - 2 new ---------------------------------- Hello, The book "How to Fail at Software Develoopment" is about all the strange and funny things people do in the name of developing software. I worked in software development for over 20 years and found silly things that were being done in the name of software development were being repeated again and again. As a matter of fact, most things that cause software projects to fail are forever being repeated. And you can spot the symptoms if you know what to look for. Most people running software projects don't... - Fri, Oct 15 2004 6:08 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6fc80bced5e47630 Any interested programmers? - all new ---------------------------------- Project Description: IDMS DBMA is an effort to develop a highly scalable (c10k complient) plugin based mail agent aimed at fighting spam and viruses. Hopefully replacing hard-to-maintain, complex, resource hungry configurations used by small to large users today. The project is pretty cool, here is a few interesting things... 1. For the protocol base implementation we use flex & bison to general grammatical parsers and lexical analysers. This parser/ analyser generates command constants & parameter lists... - Fri, Oct 15 2004 1:14 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/86da93d148484c8e CORDIC algorithm - 4 new ---------------------------------- Hi, I've been trying to write some trigonometric functions of the math library (sin, cos, tan, etc, etc.) in C and I've learned that instead of using series, the best way to go is by using the CORDIC algorithm. The problem is that I haven't been able to find the algorithm itself, just brief descriptions of it. Does anyone have any experience with this? Thanks! Dave ... - Fri, Oct 15 2004 9:14 pm 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36ad8cdfebb8f992 Code reading technique - 2 new ---------------------------------- Hi, Does anyone know web site describing techniques to read source codes written in C language (or any other languages) ? I would like to know systematized procedures of source hacking. Thank you. chi ... - Fri, Oct 15 2004 11:35 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4ed89f7634945b51 very very very long integer - 2 new ---------------------------------- hi i need some help regarding use of very very long integer datatype in 'c'.. i need it to store result of large number's factorial.. if someone can healp it would be a delight.. ... - Fri, Oct 15 2004 11:37 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1459ddd29dac7c64 C Puzzles - all new ---------------------------------- Hello!!!! I am com sci student.... I am really interested in C... Does anybody know any free ebooks or websites for puzzles that test the intricacies of C... Please Help.... Casanova ... - Sat, Oct 16 2004 12:23 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f19833a22d4b52ec ======================================================================= 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
