comp.lang.c http://groups-beta.google.com/group/comp.lang.c
Today's most active topics: * How to know the memory pointed by a ptr is freed? - 9 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/86b30ce6a4ba5b2a * Endianess: why does this code not change value on BE machine? - 6 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/581dedf5e41b1cf6 * Church's lambda calculus - 6 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/210b76dfb4421714 * typedef function pointer - 5 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b59ff5cde814c4ec * speed of int vs bool for large matrix - 4 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cb38beb7c98d9c19 Active Topics ============= Endianess: why does this code not change value on BE machine? - 6 new ---------------------------------- ... Thanks :) Good point. (In the real world I'm using such ugly stuff like Q_ UINT16 and the like though - I guess I've never seen a library (Qt in this case) which doesn't define their own "datatypes" to ensure correct byte-siyes ; ) ... Ahh, that's exactly the explanation I was looking for, my brain was stuck with this "bits go to the left". It makes perfectly sense now, thanks a lot! ... I've taken char and short and was naively assuming them to be 8 and 16 bit for illustration purposes. Thanks, Oliver ... - Mon, Sep 13 2004 1:03 am 6 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/581dedf5e41b1cf6 How to convert a double **ptr in a double const ** const ptr? - 2 new ---------------------------------- ... Vyom ... - Mon, Sep 13 2004 1:48 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/70276bb1b4eba7e1 typedef function pointer - 5 new ---------------------------------- Hi (first, excuse me for my bad english) As I know, the semantics for typedef is: typedef A B; I think this makes B a synonym of A, where A is an existing data type. Is that right? Based on the previous definition of typedef, I can't understand the next: typedef int (*TypeFunc) (int, int); I think it's declaring a new type called TypeFunc. The objects of that type are functions returning int and accepting two integer parameters. But I can't understand the semantic of the last expresion. Based on the first definition, the last should be: ... - Sun, Sep 12 2004 8:57 am 5 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b59ff5cde814c4ec malloc and free - 3 new ---------------------------------- ... Ah - you probably also call a bend in the road an "implicit left turn sign ". Richard ... - Mon, Sep 13 2004 2:04 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9dc6bf671c014afb Pointer arithmetic involving NULL pointers - 2 new ---------------------------------- ... A crashing Red Dwarf? Richard ... - Mon, Sep 13 2004 2:04 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ef9a1260c87b6bfc speed of int vs bool for large matrix - 4 new ---------------------------------- ahem, thanks for all the insightful input. i really did not realise that this topic was so debatable after all ! anyway, one small question remains ( a little OT maybe ): does the speed of accessing a 1000x1000 matrix differ in practice when it is dynamically allocated instead of statically allocated ?? thanks in advance, rajorshi ... - Mon, Sep 13 2004 2:38 am 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cb38beb7c98d9c19 How to know the memory pointed by a ptr is freed? - 9 new ---------------------------------- On Sun, 12 Sep 2004 11:12:10 +0100, Flash Gordon ... it is easy to speak (but if p!=0 seems I have right). Find an exaple where it doesn't work ... - Mon, Sep 13 2004 3:29 am 9 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/86b30ce6a4ba5b2a Geting info - 4 new ---------------------------------- I will be happy if someone will help me with this: - how to get mainboard serial number - how to get bioos serial number, bios name - how to get hard drive serial number (GetVolumeInformation doesn't fit here, because this gets partition serial number, given everytime after formating it) Are there some other unique thing in PC? I don't want to get it from registry, it shopuld be (ASM, C or WinAPI) I searched a littrle but with no interesting results ... - Mon, Sep 13 2004 6:08 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3fdd21309fee7cab Short-Circuit Evaluation of Boolean Expressions - 2 new ---------------------------------- webposter spoke thus: ... I'm not sure what you're asking, but C by definition uses short-circuit evaluation to evaluate boolean expressions, if that helps you. ... We can't help you figure out what the algorithm/data structures you want are, but once you get those figured out, we can help you implement them. http://www.ungerhu.com/jxh/clc.welcome.txt ... - Mon, Sep 13 2004 6:26 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5bea48391ad3e2c9 How to make the text stand out - all new ---------------------------------- Moonie scribbled the following: ... This may come as a shock to you, but Linux and Unix are not the whole world. C is even available for applications that don't use visual output at all, and thus have no concept of "colour". If you want to give Unix- specific advice, there's always comp.unix.programmer. .. . - Mon, Sep 13 2004 8:08 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9591f14914140342 Dynamic loop nesting - 2 new ---------------------------------- ... Actually I once think of using recursive call, but in my senario it is not the best, since I'm working on a large n-dimensional array, recurcive call will cause too much time and space, so I try to use loop nesting in a single function. I would appreciate if you could give me some tips on how to accomplish it in a single function. Thanks ... - Mon, Sep 13 2004 8:36 am 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8f838db3ecfa06e8 no lcm in standard library? - 3 new ---------------------------------- I can't find functions lcm and gcd in anywhere in the standard library. Do they exist? If not, is there a place where I can get a good implementation? Thanks in advance ... - Mon, Sep 13 2004 9:08 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e55b228d2e9561d5 file operation - 2 new ---------------------------------- ... *Unless* the input line is longer than the buffer. ... - Mon, Sep 13 2004 9:49 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/afa8368925636b60 Church's lambda calculus - 6 new ---------------------------------- snip ... I think the final word is that it's impossible in C because of things like polymorphism and probably ill-advised in C++. The following link seemed to has it out pretty well. http://www.osnews.com/comment.php?news_id=8067& offset=15&rows=30 Oh well. MPJ ... - Mon, Sep 13 2004 11:55 am 6 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/210b76dfb4421714 Performance Programming - all new ---------------------------------- [snips] ... There's a concept error here. Both Java and C are fairly portable and part of being portable is _not_ assuming that the underlying machine have SSE, or 8-bit bytes, or whatever. Java doesn't do it, C doesn't do it. A given compiler - say Intel's C compiler - may generate SSE instructions for the compiled code, but that's specific to the particular compiler, not the language. There's no reason a decent Java JIT compiler, for example, couldn't do the same thing. What you're really after, I suspect, is three... - Mon, Sep 13 2004 12:18 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/bccd33b9dff2397f C 99 compiler access - all new ---------------------------------- In article <[EMAIL PROTECTED]>, James Kuyper writes ... No but I see a lot of people involved in desktop and PC things . They use C++ Java and C#. Also if you look at the stats for job add that are in many computer/IT magazines C has all but disappeared compared to C#, Jave VB, XML, Oracal etc ... /\/\/ [EMAIL PROTECTED] www.phaedsys.org \/\/ ... - Mon, Sep 13 2004 1:09 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6ab6fa86dd3e2204 Accessing result of assignment - 2 new ---------------------------------- ... Wouldn't that render N869 6.5.16p4 meaningless? It reads: If an attempt is made to modify the result of an assignment operator or to access it after the next sequence point, the behavior is undefined. If " access" only applies to lvalues, and the result of an assignment operator is never an lvalue, then this statement describes a case that can't occur. Was this corrected in the final version of C99? ... - Mon, Sep 13 2004 3:12 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/78ecd2d1af0b023e Wrap - all new ---------------------------------- Just a note to say I'm unlikely to have any further code to present for review, but not because I've abandoned the effort. It turns out the algorithm for wrapping in full generality is more complex than I thought it would be. So the project is being redefined. Thanks again to all who contributed to my learning experience!... - Mon, Sep 13 2004 7:01 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f446c16b14cfb311 ======================================================================= 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> <a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
