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

Today's most active topics:

* Is FALSE == 0? - 11 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ead0b78fb064b276

* versions - 7 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2740c0f0a4b9802f

* getc and ungetc - 4 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d9a46731ea9ea57c

* Handling large amounts of data - 4 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f1a57b6fab7c7b12

* strlen in a for loop with malloc-ed char* - 3 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eb0a87eda9aa95e6

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

strlen in a for loop with malloc-ed char* - 3 new
----------------------------------
Ravi wrote: ... "v" version of bug_printf(). ... Well, we answered you when 
you first asked this or an equivalent question and told you why things like 
that are Bad Ideas. I even sent you something via PM to help with the 
replacing the function calls in question in the source code and got no real 
feedback. So, why exactly are you warming up this stuff again if you already 
know that it is considered dangerous and will break at the most inconvenient 
time? For the information of the rest: Have a look at the thread where... -  
Sat,  Nov 20 2004 12:56 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eb0a87eda9aa95e6

Help with pointers - 3 new
----------------------------------
Hello, I wanted to know what does the following code lines mean? **p=&(list->
m_head); p=&((*p)->m_next); What does the second line mean? I thought I 
should write *p=&((*p)->m_next); with a star at the beginning of the line. 
Since this is a pointer to pointer and what I want that the last pointer 
points to the next node. But I understood that I should remove the star if I 
want that and I don't understand why. As I see it without the star I am having
the first pointer point to the next node (and that impossible since its a 
pointer to... -   Sat,  Nov 20 2004 1:16 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4bdd232c7a3b9c93

Learning C - all new
----------------------------------
Wes wrote: ... DevC++ comes with the GCC, you should be able to somewhere add 
'-Wall' to the compiler arguments. I don't have it running here, or I would 
tell you exactly where, sorry. Uli ... -   Sat,  Nov 20 2004 1:37 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7c3b9722743bd9e

versions - 7 new
----------------------------------
... Hrrm, not versions, but implementations thereof. The point is, that (I'll 
leave aside C++ for now) you have basically two standards currently in use, C
89 and C99 IIRC. There is also the ancient K&R C(named by C's originators 
Kernighan and Ritchie) which was AFAIK never standardized, but that is not in 
wide use anymore. Most compilers today conform to the C89 standard(i.e. are 
implementations of that standard), and that is also what you should start off 
learning first. Compilers is what exists many of, not... -   Sat,  Nov 20 
2004 1:53 am
7 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2740c0f0a4b9802f

getc and ungetc - 4 new
----------------------------------
"Trent Buck"  wrote ... Most simple parsers used for things like computer 
languages divide the input stream into token, and then parse from left to 
right with one token of "look ahead". So if your tokens are single characters 
then getc() and ungetc() may be adequate. Of course if you have ambitions to 
build a natural language parser, or even some simple grammars with unusual 
characteristics, then this scheme won't work, and you will need some method of
scanning up and down many tokens on... -   Sat,  Nov 20 2004 2:14 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d9a46731ea9ea57c

getting variable type in C - all new
----------------------------------
... Here, "C" is commonly used as shorthand for "standard C". Are you still 
struggling with this concept? ... How horribly unbearable! I'll have mama 
get us some ginger snaps and warm milk before bedtime! Mark F. Haigh 
[EMAIL PROTECTED] ... -   Sat,  Nov 20 2004 2:36 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3c5bebf4c0625e0b

memcpy as macro legit? - all new
----------------------------------
... I think it's pretty clear that Lawrence was using the term "preserve the 
semantic" informally, and did not mean "with exact semantics of". I think 7.1.
4p1 is clear enough about the semantics of library functions implemented as 
macros. Mark F. Haigh [EMAIL PROTECTED] ... -   Sat,  Nov 20 2004 2:47
am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4af54b08a4d427b2

How to best parse a CSV data file and do a lookup in C? - all new
----------------------------------
... The standard doesn't say anything special about strtok in terms of 
reentrancy. ... strchr can be used to write strcspn and strspn like functions.
 A strchr like function can be written in the C language proper. A reentrant 
version of a strtok like function can be written with an extra parameter to 
point to the object which takes the place of the static object in strtok. 
char *str_tok_r(char *s1, const char *s2, char **s3); ... -   Sat,  Nov 20 
2004 4:34 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/86a3ddf0724d9630

Is FALSE == 0? - 11 new
----------------------------------
Is FALSE == 0? In other words, does 'function ()' execute on all platforms: 
if ( (1 == 2) == 0 ) function (); if ( (7!) == 0 ) function (); I would 
like if you could point to some definition of the c language. ... -   Sat,  
Nov 20 2004 5:03 am
11 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ead0b78fb064b276

How to check the lock status? - 2 new
----------------------------------
How to obtain the lock status of a file held by other process? If I read the 
file that is locked by other process, the read would return -1. If the file is
locked by other process, how to put the read to sleep for a second and try 
again after a period of time? Thanx ... -   Sat,  Nov 20 2004 3:24 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/53ffdd4671f0e866

Question about storing a maze board(like 2d array) into Tree. - 2 new
----------------------------------
 ... I would personally black box test each function. When you find the 
function with the error, white box test it. ... ... -   Sat,  Nov 20 2004
7:56 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3355ffa7be5f95d5

Handling large amounts of data - 4 new
----------------------------------
Hi all. I am working on an audio application which needs reasonably fast 
access to large amounts of data. For example, the program may load a 120 
second stereo sound sample stored at 4bytes per sample, which would mean over
40MB of data at a 44100Hz sampling rate. Now, what would be a good way to 
handle all of this data? Ideally, for the sake of my own sanity and the 
algorithms within directly functional portions of the code, I'd like to 
interface with the data via normal array syntax. Are arrays of this size 
really... -   Sat,  Nov 20 2004 8:05 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f1a57b6fab7c7b12

Core + malloc - all new
----------------------------------
... Hi, Claudio: It sounds like you are running an application that is "
dumping core", which is to say, creating a "core file" for post mortem 
examination. In cases where a C program terminates (normally or otherwise) 
before all malloc'd memory has been free'd, the memory is automatically 
recovered, sometimes by epilogue code generated by the C compiler and 
otherwise, by the operating system. ... -   Sat,  Nov 20 2004 1:16 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2c9fe5b7a1c1a832

a simple c code - 3 new
----------------------------------
why this code enters an infinite loop. i dont know what is the problem in 
while((c=fgetc(file))!='\n' && c!='\r') It enters the infinte loop in this 
statement. The aim of the program is to remove comments of type // It uses a 
temp file and after the operation , deletes the file. //this is a test. ...
//this is a test. int main(void){ char c; FILE *file,*temp; int last=
FALSE; file= fopen("file2.c","r"); temp=fopen("TEMP","w+"); if(!file ||
!temp){ printf("error"); exit(1); ... while((c=fgetc(file))!=EOF){...
 -   Sat,  Nov 20 2004 1:39 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/23e78ce738c982fb

FBI turned AMERICA into a NATION of PROGRAMMED SLAVES and ROBOTS - all new
----------------------------------
On 15 Nov 2004 03:33:30 -0800, in comp.lang.c , [EMAIL PROTECTED] ... (
random garbage) Abuse reports filed to originating ISP and others. ... -   
Sat,  Nov 20 2004 1:46 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/24ad66ee4a28ed3e

How to read data ? - all new
----------------------------------
On 19 Nov 2004 20:57:37 -0800, in comp.lang.c , [EMAIL PROTECTED] (Peter ... 
If you do a google groups search, you'll find a comment on this idea from 
Bjarne Stroustrup. You might also want to read the errata listing for the book,
 which is K&Rs comment on their mistake. ... -   Sat,  Nov 20 2004 1:52 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a69e10059208d734

call to malloc with size 0 - 3 new
----------------------------------
On Fri, 19 Nov 2004 23:26:05 UTC, "E. Robert Tisdale" ... Twitsdale is 
posting crap once again. Twitsdale is unable to learn C as defined by the 
standard because he thinks ther is no other C compiler as Wincrap existent on
the real world. Put twitsdale into your filters and you bewares yourself 
always of the crap this bloody ignorant craps out of his ass. There is really
NO, absolutely NO reason to cast the result of a function that returns a 
pointer to void. But here are thousend reasons you invoke the lands of 
undefined behvior.... -   Sat,  Nov 20 2004 2:03 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ac4d191d274907c6

Micro-C -- Help monitoring a switch on 8051 - 3 new
----------------------------------
... Not really magic - the I/O ports are addressed in the internal memory 
address space in the 8051 (at least for direct addressing) - P2 is simply 
declared as an external variable in internal memory in the header file the 
lib has the actual definition which resolveds it to the right SFR address. ..
. Probably comp.arch.embedded ... -   Sat,  Nov 20 2004 2:11 am
3 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b1bc31cea3a6482d

char vs int - 3 new
----------------------------------
 ... FAQs, I'll go with that. MPJ ... -   Sat,  Nov 20 2004 4:29 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/513350d660d42aa4

Question about setjmp on Itanium HPUX. - all new
----------------------------------
... It's possible the compiler folks knew their implementation had problems, 
and they were able to work around them somehow in static objects and within a
single relocatable object, but not across different relocatable objects. 
Exactly what kind of implementation glitch this might be, particularly when 
it's specific to a single compiler on a single platform, is beyond me. But 
it'd be interesting to hear from the HP-UX compiler guys lurking here what it
is... S ... -   Sat,  Nov 20 2004 4:48 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d2ba06fe57d25c4e

Learning C with Older books ?. - 3 new
----------------------------------
... As long as the book covers standard ANSI C you are fine. Check the cover 
or the intro for that. The K&R ANSI C version is a good book to use.... -   
Sat,  Nov 20 2004 7:49 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33

Typedef with GCC/G++ - 2 new
----------------------------------
... Since when did structs have to have members? ... -   Sat,  Nov 20 2004 9:
22 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/57cceab6ca5afdf0

a[3] <===> *(a + 3) ??? - all new
----------------------------------
... In your example, a[3] etc. are not expressions. ... -   Sat,  Nov 20 
2004 9:27 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/12202735902b4eac

 

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

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