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

Today's most active topics:

* Standard Read and Write FILE functions to refer to memory - 13 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7e9b399435293d65

* Clunky C cleanup code - 11 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/98ef8cb382bd16c2

* read url - 10 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/85ca59e624c9884c

* Why in stdint.h have both least and fast integer types? - 9 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/abc19ced0e9928b2

* struct named 0 - 7 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b7026c716c8ddf97


Active Topics
-------------

int86 function... - 3 new
-------------------------
...Even better: rethink the whole idea, decide what you actually want to do 
rather than which low-level features you used to employ to do it, _then_ try a
Linux newsgroup. Richard - Wed, Dec 1 2004 8:03 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5b4089d11d725cb6


struct named 0 - 7 new
----------------------
...Where does C99 state this ? ...That is not the language of the standard : 
it says nothing about such a conversion. All it says is that the result of 
converting a valid pointer to void* or char* and back to the original pointer 
type will yield a pointer that compares equal to the original pointer. 
"Containing the same address" is not necessary, nor is - Wed, Dec 1 2004 9:13 
am
7 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b7026c716c8ddf97


can not find graphics.h - 2 new
-------------------------------
...In MSVC 8.0 there is a header file named GRAPH.H. It defines a few very 
basic functions to get/set a pixel, draw a rectangle or an arc, etc. You also 
need to add GRAPHICS.LIB to you compile (link) command, I imagine. Perhaps 
that may work for you. Try asking over in comp.os.msdos.programmer or 
something similar, and - Wed, Dec 1 2004 8:44 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5a16a7b6099f5c64


Is there a Swap faster than using XOR!!! - 3 new
------------------------------------------------
...Since much of this discussion is off-topic anyway, I'll indulge in some 
ancient folklore. The IBM 370/145, with a 2-byte ALU, could do a 4-byte 
addition in *one* micro-cycle (the cycle was extended to run the ALU twice) 
but required *four* micro-cycles to do a 4-byte XOR (both halves of the ALU 
did the same byte with results compared for reliability!) - Wed, Dec 1 2004 12:
56 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b4478c278a5ebed4


Standard Read and Write FILE functions to refer to memory - 13 new
------------------------------------------------------------------
...Hmmmm.... Not sure wether that's a good idea... ...Defining a couple of 
hooks would be sufficient: - file_overflow to provide the 'write' 
functionality and - file_underflow to provide 'read' functionality. Both could
easily (and portably) be set using fcntl(). If they are called with a 
reference to the current location in the - Wed, Dec 1 2004 9:57 am
13 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7e9b399435293d65


Increasing array size - 2 new
-----------------------------
"Require"? ... "Easy"? Let me rephrase Deepa's answers. ..."In C this is very 
simple to do with malloc()." ..."In C++, many might do this by invoking an 
unneccessarily complicated copyrighted library." If you like C++, you're 
welcome to it (though not in this newsgroup) but do let's not confuse the 
novice with misleading tone. - Wed, Dec 1 2004 1:06 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/156214ee6a21766f


Good C book - 3 new
-------------------
...Check back a few threads to one that reads: "Nth request of book 
recommendations" - Wed, Dec 1 2004 9:16 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d158f8d0345a234c


read url - 10 new
-----------------
...Which is an *utterly* unprofessional attitude IMNSHO. Childish, too. - Wed,
Dec 1 2004 10:48 am
10 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/85ca59e624c9884c


Nth request of book recommendations - 2 new
-------------------------------------------
Thanks to everyone who helped me out with this. :) I've ordered my copy of K&R
2, which seems to be the best choice and recommended by many. Maybe I'll buy 
the H & S tome later. Other books like "C Unleashed" and the Kochan books also
look interesting, but I won't consider getting them before I've got some more 
experience/skill in the language. - Wed, Dec 1 2004 11:02 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/13cd6c4626c5730c


Clunky C cleanup code - 11 new
------------------------------
...<snip> ...0 ...It makes the main() return value portable. On Un*x 0 is used
to indicate successful program termination and any non-zero value is (commonly)
 interpreted as success (disclaimer: there are a few programs that do not obey
this rule, IIRC). On other platforms it may be different and a successfull 
program termination - Wed, Dec 1 2004 11:17 am
11 messages, 9 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/98ef8cb382bd16c2


Best way to allocate a large amount of data - 5 new
---------------------------------------------------
...range ...string x * ...You're best off storing them in a string array. 
Allocating a single string with x*y length is a bad idea. One problem is that 
you'll need the null terminator or a sentinal character to seperate the 
strings. This would force you to re-write many of the string functions that 
you need, and add house-keeping data (which is not good if you're concerned - 
Wed, Dec 1 2004 5:20 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/54cc2f9d4dbb1a21


Keil ARM - 3 new
----------------
Hello everyone, Anyone has experience using keil pk-Arm and ARM 
microcontroller. I am novice in this field and any help in getting 
introduction would be appreciated. With regards, Sridhar - Wed, Dec 1 2004 5:
55 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5f5c13f541995801


comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) - 1 new
--------------------------------------------------------------------------
Archive-name: C-faq/abridged Comp-lang-c-archive-name: C-FAQ-list.abridged URL:
 [link] [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 - Wed, Dec 1 2004 11:00 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/377866a08ec3a608


comp.lang.c FAQ list Table of Contents - 1 new
----------------------------------------------
Archive-name: C-faq/toc Comp-lang-c-archive-name: C-FAQ-list.toc URL: [link] [
Last modified July 3, 2004 by scs.] This article is a table of contents for 
the comp.lang.c frequently-asked questions (FAQ) list, listing the questions 
which the abridged and full versions of the FAQ list answer. (Both lists 
answer all questions; the - Wed, Dec 1 2004 11:00 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b6f0af62f7a5dba5


More bitwise woes - 2 new
-------------------------
...It is a bit misleading to number bits this way. Even though it is merely a 
matter of conventions, I find much more consistent to number bits from the 
least significant to the most significant starting at 0. It is more consistent
because it makes the value of bx be 1<<x or 2 to the x. Most hardware vendors 
use this convention. IBM is among the few that use the - Wed, Dec 1 2004 1:40 
pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3cf52c609665441


Array Arguments..... - 1 new
----------------------------
...news:[EMAIL PROTECTED] ...Was this syntax discussed in the 
ISO meetings ? int[3] bar int foo(int[3] bar) -- Chqrlie. - Wed, Dec 1 2004 1:
49 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6207879197be61fc


qt +linux - 1 new
-----------------
...... ...Jinx! now I have to clean my keyboard and screen again. Please don't
post C++ code here. -- Chqrlie. - Wed, Dec 1 2004 1:52 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1f557b322dd1c227


Calling atexit - 1 new
----------------------
...Older compilers either didn't allow the & operator to take an array or 
function argument or ignored it in such contexts. Dan - Wed, Dec 1 2004 1:26 
pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e119e8782145656


qsort - 1 new
-------------
...If an implementation cannot translate and execute a program like the one 
described in N869 5.2.4.1, [#1], then it is not a conforming implementation. ..
.You just made that up. There's nothing in the standard which suggests that 
qsort can call abort when qsort is called with valid arguments. - Wed, Dec 1 
2004 2:00 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2329e52e47f51f82


strtok but keep the separator - 4 new
-------------------------------------
I need a way to use strtok or some other function to parse a string but keep 
the original separator. My string that is delimited by commas and spaces and I
need to format the string for output so that there is no breaks on the tokens.
So (notice no spaces after the commas): "Mary had a little lamb,sheep,goat,
frog and a couple of other herding - Wed, Dec 1 2004 9:00 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5589d2cd4dd140e3


Learning C with Older books ?. - 5 new
--------------------------------------
...Only if you're forced to use a low quality compiler. The best lint-like 
tool I've ever used is gcc. -Wall -O provide a decent set of "default" checks 
that the programmer can easily extend according to his needs (e.g. to check 
that all function declarations are prototype declarations). The worst feature 
of lint is that you have to start desabling default - Wed, Dec 1 2004 2:10 pm
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33


IVT at address 0 - 3 new
------------------------
...<snip> ...No. My compiler uses NULL (null-pointer) all bits zero and does 
not mind dereferencing it. - Wed, Dec 1 2004 6:25 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/544cc5168c075195


problem with setjmp - 1 new
---------------------------
...The description from K&R2 might be short (less than half a page), but it 
tells you everything you need to know. Pay attention to each and every detail,
even reputable authors like H&S have gotten one thing wrong in their book. Dan
- Wed, Dec 1 2004 2:17 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a4ea7f0f3168160e


register variable - 1 new
-------------------------
...You're wrong. All the models with console switches, even the most basic 
ones (/05, /10, /20) with no CPU modes and no memory management had registers-
in-I/O because this was the only way for the operator to access their contents.
 By the time console switches have been replaced by firmware console emulators
(the second generation of PDP-11s), having - Wed, Dec 1 2004 2:29 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c8ebfc97ce3d1f0d


Unix C programming for finding file - 3 new
-------------------------------------------
...Many things could happen in theory, but in practice few organisations are 
foolish enough to ignore ISO standards addressing the same issue, for *no* 
redeeming benefits. ...Please post some *concrete* examples where their 
official spellings differ from the ISO standard. ...I don't think so, unless 
you provide some concrete examples. The very - Wed, Dec 1 2004 2:58 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f656fbf7205c815e


What is const char * const *p; - 2 new
--------------------------------------
...Can I have the chapter and verse? I always thought it was a constraint 
violation: 6.5.10 Bitwise AND operator Syntax 1 AND-expression: equality-
expression AND-expression & equality-expression Constraints 2 Each of the 
operands shall have integer type. - Wed, Dec 1 2004 3:05 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/20b6af129c4730cd


Systems software versus applications software definitions - 1 new
-----------------------------------------------------------------
...I find that hard to believe ! -- Chqrlie. - Wed, Dec 1 2004 4:33 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3fa8770993ebe026


[OT] Re: fseek past the eof - 1 new
-----------------------------------
...It's much faster to actually try it and see what happens on your actual 
target platform. It's also more likely to provide the correct answer for your 
target platform (which need not be the same as the one for the responder's 
platform, e.g. the Linux behaviour may be different from the MSDOS behaviour).
- Wed, Dec 1 2004 3:22 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1b2acc8dfc8dbc12


C... Why not c++? - 1 new
-------------------------
I confirm c++ is the fastest. My test confirm it's more powerful particularly 
for data elaboration, probably for better algorhytm. There are no rilevable 
difference between C and C++ during hardware access. Thanks - Wed, Dec 1 2004 
7:49 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/729e593ab5747942


How often templates are used - 4 new
------------------------------------
can anyone help with a batch file which will tell me which, and how many times
templates have been accessed in a month? - Wed, Dec 1 2004 7:55 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7a44d1316c6e2208


How to understand C FAQ 3.8? - 2 new
------------------------------------
... With pleasure: The "only to determine the value to be stored" language 
prohibits things like `i++ * i'. Does that help? - Wed, Dec 1 2004 11:14 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/605355148cd352ab


Why in stdint.h have both least and fast integer types? - 9 new
---------------------------------------------------------------
 - Wed, Dec 1 2004 10:04 am
9 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/abc19ced0e9928b2


compiler won't allow dimensioned array of Char* to be signed to another??? - 7
new
---
My compiler (m68k-gcc) does not allow this (simplified example; not my real 
code) and I don't see why not: { char *arrayCharPtr1[] = {"a", "ab", NULL}; 
char *arrayCharPtr2[] = {"A", "AB", NULL}; char *arrayCharPtrVar[] = ((
someBoolean) ? arrayCharPtr1 : arrayCharPtr2); // <-error here! StrCopy(
someString, arrayCharPtr[0]); - Wed, Dec 1 2004 10:14 am
7 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/639e49c6fe362f


Zero length array declaration - 7 new
-------------------------------------
Hi, Looking to see if the following construct is valid: typedef struct { int 
foo; char bar[0]; ...Basically, the idea is to have the structure above point 
to a message buffer that has a 4-byte integer followed by a stream of variable
number of bytes. The structure member "bar" is used to reference the - Wed, 
Dec 1 2004 11:49 am
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8a95176b9393b061


MATLAB error: ???Processor not supported createobj(cc_target,'x'); CCS 5510 TI
- 3 new
-------
Hi Im trying to get the variable x from Code Composer via Matlab the following
way variable=createobj(cc_target,'x') but there is and error message from 
matlab: ??? Processor not supported The variable x on Code Composer has been 
int,double,float x has been also an structure and an array but createobj still
says: - Wed, Dec 1 2004 4:38 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ff6f1c42a170ca2c



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

You received this message because you are subscribed to the Google
Groups "comp.lang.c" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.c

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.c/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to