comp.lang.c http://groups-beta.google.com/group/comp.lang.c
Today's most active topics: * Floating point number to binary - 11 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e706d56b01a84359 * declaring array of pointers - 5 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/91750f2a96517ca0 * question - 4 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/80b0f524f70cef35 * Need help on bit operations define - 4 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7b491449ae29143d * Some Newb Problem with "int", please help. - 4 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68cb42fb87cea0db Active Topics ============= Embedded systems and C programming - all new ---------------------------------- Shalini wrote on 17/09/04 : ... AFAIK, there is nothing special about C dealing with embedded software programming. Most of the code can be written in reusable standard C. As usual, the non standard code parts (system, direct I/O) should be isolated from the standard code to help porting (and debugging too, as a side effect). The only thing is that it is a usual practice to unit test the code on a hosted environment (like a PC under Windows or Linux). The tools are often more easy and fast to use. This is why... - Sun, Sep 19 2004 1:32 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fb96d3188cc25c75 Developing chat application - 2 new ---------------------------------- "sangeetha" wrote ... "clients", terminals with VDU and keyboard. C doesn't specify how to do this. ANSI C programs just have stdin and stdout, which are inherently single streams and support only one user. You need to look at the libraries on your system, which is probably either X or MS Windows. ... - Sun, Sep 19 2004 1:57 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4c0d871f32f30e0b How to find out if an int has no value - all new ---------------------------------- Richard wrote on 19/09/04 : ... It's very a common practice. ... - Sun, Sep 19 2004 2:12 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a20f9e4e4a3adcad question - 4 new ---------------------------------- why does the program below using swtich function add the last value enter when exitting the program snip below: while(choice != 'q'){ ... return 0; . .. but if i use if & else to do the same thing it gives the correct output while(1) { printf("result: %.2f\n",result); variable(); ... return(0); ...... - Sun, Sep 19 2004 4:54 am 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/80b0f524f70cef35 srand() troubles - 2 new ---------------------------------- ... Not being any sort of cryptographer, I guess you are right in that it can be beaten. After all, there is no such thing as an unbeatable system, given enough time. Another thought that occurs to me is to permute the bit order of the randoms generated. However, all this is getting OT here, where the original idea was to generate a suitable simile of a shuffle, not to protect it against the world. ... - Sun, Sep 19 2004 4:56 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cbe4162622b4bab5 Comparing Linux C and C++ Compilers: Benchmarks and Analysis - 3 new ---------------------------------- ... For similar reasons to why I am running it on a 486/80. My primary use is as a newsreader, and every time I consider upgrading I hear about one more reason that Mozilla/Firefox/NS7.2 would create a problem for me. Besides, it is quite young, just barely old enough to go to kindergarten. My cars are all older too, I have a '63 Honda motorcycle in the garage, and I won't even mention my bicycle. ... - Sun, Sep 19 2004 4:56 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5dbb9ae19db772cb compilers & stack machines - 3 new ---------------------------------- ... Try comp.programming. ... - Sun, Sep 19 2004 4:56 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a7c3ace6fd5013d8 Floating point number to binary - 11 new ---------------------------------- I don't know any special function for this in C, but it is very easy to do if you know method of convertion... If you need if, I can describe... -- LM... - Sun, Sep 19 2004 5:34 am 11 messages, 9 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e706d56b01a84359 Two Questions about "strlen", "strcat" and "strcpy" - all new ---------------------------------- ... No, NULL doesn't denote a string, and even if it did, a length of -1 would "make sense" only if it pertained to going backward from the given starting location.... - Sun, Sep 19 2004 5:34 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e9ba0a3a9129c3ba Need help on bit operations define - 4 new ---------------------------------- ... Oops, yes it should. Thanks. This is why I should compile my snippets before posting them...... - Sun, Sep 19 2004 5:34 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7b491449ae29143d Unit / Coverage testing - all new ---------------------------------- Hello, I am looking for a tool to process torough UNIT and COVERAGE testing over 60 and more functions of a "critical" embedded application written in C. I found IPL's Cantata++ but we don't seem to really need all the power of this software. I think some other tool out there could provide me with the basic testing I want with less expense. Ease of use (ie. time) is important. Any advices ? oz Please copy answers to : [EMAIL PROTECTED] Sorry if a FAQ.. . didn't found frequently given answers !... - Sun, Sep 19 2004 5:36 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d755bb3dc7f087e7 declaring array of pointers - 5 new ---------------------------------- ... It may compile but it is very flawed and will not run. LL has the value NULL and does not point to storage. Since you are trying to access storage that is not, the execution will fail. You can type the member Iterators as Node *Iterators[3]; making Iterators point to an array of 3 Node pointers. Make a LinkedList object LinkledList mylist; Then you can access or assign Iterators with code something like this: mylist.Iterators[0] = malloc(sizeof Node); or Node newnode; mylist.Iterators[0] = &newnode; and mylist.Iterators[0] ->Data = /* whatever */... - Sun, Sep 19 2004 6:12 am 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/91750f2a96517ca0 Tips on gaining proficiency in C - 3 new ---------------------------------- ... I don't obfuscate. I learn from code examples. If somebody else can learn from my code example, that's good. If somebody turns in a correct code example for homework without understanding it, then their homework grade will be higher than if they didn't turn in a correct solution, but, class grades usually include other components besides homework, which tend to be more heavily weighted, such as exams. Copying homework will cause exam scores to go down and that's good too. ... - Sun, Sep 19 2004 8:29 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d4264dd7b9939f9 linux speaker beep - all new ---------------------------------- ... Jack Klein's sig, which you apparently found so offensive you felt the need to obfuscate it, contains his name and homepage (which is hardly unusual), plus links to three FAQs which are extremely helpful to readers of this newsgroup. (One could could argue the topicality of the comp.lang.c++ FAQ, but topicality rules don't apply to sigs.) For that matter, his homepage could be considered a form of harmless advertising, but it also contains links to some useful information. Quick summary: You're wrong.... - Sun, Sep 19 2004 8:39 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a0e2a5a961920995 Out-of-bounds access and UB - all new ---------------------------------- ... Using the lcc-win32 compiler you get: D:\lcc\mc59\test>lcc -c tub.c Warning tub.c: 6 indexing array buffer[3] out of bounds (3) Warning tub.c: 7 indexing array buffer[40] out of bounds (3) 0 errors, 2 warnings ... - Sun, Sep 19 2004 5:15 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aa60e124041ec9c9 ping source code - all new ---------------------------------- Groovy hepcat Joona I Palaste was jivin' on 16 Sep 2004 19:53:00 GMT in comp. lang.c. Re: ping source code's a cool scene! Dig it! ... Actually, Joona, apart from the lack of a return type required by C99, this is perfectly legal code. Old K&R style declarations are still legal (though obsolescent). ... - Sun, Sep 19 2004 6:55 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/224b55f45e882482 Welcome to comp.lang.c! - all new ---------------------------------- Welcome to comp.lang.c! This post is intended to give the new reader an introduction to reading and posting in this newsgroup. We respectfully request that you read all the way through this post, as it helps make for a more pleasant and useful group for everyone. If you are new to newsgroups in general, you can learn a lot about how to get the most out of newsgroups by reading the links below: ... With that said, please keep in mind that comp. lang.c is a group for discussion of general issues of the C programming language, as defined... - Sun, Sep 19 2004 9:11 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fdeaf6f78d024c82 Doubt-Efficiecy of 3D arrays - 2 new ---------------------------------- hi all, I am developing a tool for scientific application which must be time and memory efficient,my tool uses 1D,2D and 3D arrays. Is it a good practice to use 3D arrays in applications or I should use convert my 3D arrays to 1D arrays for efficiency. Thanks in advance, Chella mani ... - Sun, Sep 19 2004 10:00 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d588c24438bc97ac simple word wrap problem not wrapping - all new ---------------------------------- On Mon, 13 Sep 2004 00:15:28 -0400 (EDT), "Arthur J. O'Dwyer" ... Gack! Sorry, I must have been sick that day or something. - David.Thompson1 at worldnet. att.net ... - Sun, Sep 19 2004 10:05 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b27caad5393ba1ea Some Newb Problem with "int", please help. - 4 new ---------------------------------- The problem professor gave us is: Write a program which reads two integer values. If the first is less than the second, print the message "up". If the second is less than the first, print the message "down" If the numbers are equal, print the message "equal" If there is an error reading the data, print a message containing the word "Error" and perform exit( 0 ); ... main() { int x; int y; printf("Enter the first integer: "); scanf("%d", &x) ; printf("Enter the second integer: "); scanf("%d", &y);... - Sun, Sep 19 2004 10:49 pm 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68cb42fb87cea0db C Beginner Question - all new ---------------------------------- In article , ... ... which may (or may not) give the wrong results. In this example, it depends on what the results of: ... should be, since sign extension is part of promotion. - jonathan ... - Sun, Sep 19 2004 11:13 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ea3ee1ef0a652199 ======================================================================= 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
