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

Today's most active topics:

* C... Why not c++? - 12 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/729e593ab5747942

* Not STD C is "not C" ? ----WAS: Re: C to Java Byte Code - 10 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4

* Why C? - 10 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2501c2e7176dbf

* Collections Library for C - 9 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7d6847d477ce52f4

* String Comparison - 9 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5b2fd8d06fea9c80

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

printing address using pointer - 2 new
----------------------------------
... printf("%p\n", (void*)ip); ... <<Remove the del for email>> ... -   
Mon,  Nov 1 2004 12:33 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2d1abdf811f51861

Not STD C is "not C" ? ----WAS: Re: C to Java Byte Code - 10 new
----------------------------------
 [f-ups set to c.p, where this discussion may be marginally topical] ... 
How about if the quoted text starts with ">"? One of my pet peeves is news 
clients that insert extra levels of spaces in quotes; a couple of levels is 
okay, but the above quote would end up being ... if everyone used your 
newsreader's conventions without any hand-tweaking, and that just looks 
ridiculous-some 1/7 of the total screen real estate is being taken up by 
quote markers, which ought to be almost redundant anyway, if quoting is done 
properly. (IOW,... -   Mon,  Nov 1 2004 12:45 am
10 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4

Collections Library for C - 9 new
----------------------------------
... Dear newsgroup: I want to profit from the work of others, but I do not 
want to contribute anything. Neither money, nor even with the disclosure of my
source code. Of course "my* software will be sold with the highest possible 
price-tag, so GPL/LGPL are useless. Thanks in advance for your stupidity. ...
-   Mon,  Nov 1 2004 12:58 am
9 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7d6847d477ce52f4

C... Why not c++? - 12 new
----------------------------------
... ... This is nonsense. The CPU will run any object code it's handed. It 
doesn't matter if the code comes from a C++ compiler, a Forth compiler, a 
Prolog compiler, or a human being with toggle switches and LEDs. You might 
not write code in C++ for an embedded system, but there might not be a good 
reason not to, either. If gcc supports the target platform, or if you write a 
backend that allows it to, you automatically get a C++ compiler that targets 
that system. Then it's merely a matter of analyzing the benefits C++ brings as.
.. -   Mon,  Nov 1 2004 1:20 am
12 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/729e593ab5747942

Newbie linking problem - all new
----------------------------------
... particularly if you don't understand the implication of what you have 
done. For example, who knows what -e would do? There's some reason for the 
choices made by g77, and for people adhering to them. Given that you chose 
otherwise, use nm to examine your .o files to find out which don't match your
expectation. I still use red hat 8, but never with the broken versions of gcc 
and g77 which came with it. When asking for help on newsgroups, it's best to
use a standard version of the compiler and ask on a newsgroup devoted to ... -
  Mon,  Nov 1 2004 1:49 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/607eda2416667b32

Array initalization doubt. - 4 new
----------------------------------
 ... <snip excellent stuff> Agreed. ... -   Mon,  Nov 1 2004 1:59 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a0350b86ca5dc3b3

Why can't constants have commas? - 3 new
----------------------------------
 ... Which is at least something different than I wrote. ... Not a conclusion
at all. Merely a statement of my view that such a declaration would be a bit 
weird. So your "Bogus conclusion" conclusion is Bogus. Thankyouverymuch... .
.. -   Mon,  Nov 1 2004 2:02 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c83bd31dbb075d

URGENT: Need help in setting environment variable.. pls help - all new
----------------------------------
On 30 Oct 2004 16:15:27 -0700 ... If you want help on MS products go to the MS
groups, there you will find people who actually know the answer. Around here 
we only deal with standard C, not the extensions provided by various vendors...
. -   Mon,  Nov 1 2004 2:53 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7b046388537281fb

comp.lang.c FAQ list Table of Contents - all new
----------------------------------
Archive-name: C-faq/toc Comp-lang-c-archive-name: C-FAQ-list.toc [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 wordings of the questions in this article are taken from the 
abridged list.) If you have only just come across this article, you will 
naturally be wondering where the lists which it indexes can be found. The 
unabridged... -   Mon,  Nov 1 2004 3:00 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/805e72470efb0fec

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... -   Mon,  Nov
1 2004 3:00 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/530e570522572d97

comp.lang.c Answers to Frequently Asked Questions (FAQ List) - all new
----------------------------------
Archive-name: C-faq/faq Comp-lang-c-archive-name: C-FAQ-list [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 may not be republished... -   Mon,  Nov
1 2004 3:00 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eafe7408c762021c

Adding a Sentinel - all new
----------------------------------
... Neither am I. The term "sentinel" doesn't seem to make too much sense in 
the context of the program you're trying to write. Perhaps it would become 
clearer if you would post the relevant part of the text of your assignment....
-   Mon,  Nov 1 2004 3:42 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8989c84e139f7b5d

derangement: coding review request - 2 new
----------------------------------
... But on the topic of pointers, pointers are not an advanced topic in C. 
If you take a look at the interface to most of the standard library functions,
 particularly the string and stdlib functions, you'll see that pointers are 
the coin of the realm. ... -   Mon,  Nov 1 2004 3:43 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c5271ccb9149a

FBI SADISTS SEXUALLY ABUSED ME and RAPED ME for 3 YRS and BEHEADED ME - 3 new
----------------------------------
If you are a US Govt "PROGRAMMED SLAVE and MORON" OBSESSED with tin foils, 
aluminium foils, schizo meds etc I KINDLY REQUEST you to ignore the rest of 
this column and move on to the next post in the news group. FBI SADISTS could
possibly have installed a transponder chip in my body like Ethan did to Nyah 
in Mission Impossible 2. If any of you are KNOWLEDGEABLE about how to find 
transponders implanted using any methods including X-Rays, please post some 
relevant information here and HELP ME. It would be greatly appreciated.... -  
Mon,  Nov 1 2004 3:53 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/242af74836027cd9

Please review my tutorial - 7 new
----------------------------------
I had recieved an email sometime ago wherein I was asked to write a function 
that parsed a given string for the longest pallindrome it contained and 
replaced the pallindrome with another string, given as its second argument. In
finding a pallindrome, however, all the characters were to be considered equal.
 Therefore, a space, a comma, or any punctuation for that matter was to be 
treated like any other character. In solving that question, here's what I 
came up with after a try or two: //File R.h ... int ReplacePallindromes(char**
, char*);... -   Mon,  Nov 1 2004 4:00 am
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a1ca8b5c0397a03b

Get System Memory in C - 2 new
----------------------------------
On 31 Oct 2004 18:47:38 GMT, Joona I Palaste ... Especially since realloc can
(and often does) allocate a different block of memory for the larger amount, 
thus leaving chunks of free memory of smaller sizes lying around. Times when 
I've done similar things I have started with trying to calloc the maximum 
possible, then done a binary 'chop' freeing the memory at each stage. It 
still only gets the "biggest at this time" but is much less prone to 
fragmenting the memory. But don't try it on a machine with lots of... -   
Mon,  Nov 1 2004 3:48 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/97f4da4890fe4c32

Utility to partially preprocess - 2 new
----------------------------------
I have a requirement to partially preprocess C code. By 'partially' I mean 
that I need to define some macros (to the utility) and have it preprocess only
those macros, leaving everything else intact. A compiler's preprocessor won't 
do this, since it will also process macros defined in the code (and in 
standard header files) and strip out everything. For instance, given source 
like: ... { ... { printf("something completely different - PI = %f\n",
 PI); ... I would want the output to be: AAA undefined:... -   Mon,  Nov 1 
2004 3:08 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/673e19381c85f1d0

C Help Magic Square - 2 new
----------------------------------
... Agreed. ... I guess you could argue your case here, given that the (outer)
 array element's type can be deduced as incomplete from the syntax alone. [But
a part of me thinks you're stretching it with this statement. :-] ... % dir
/B decl.* decl.c % type decl.c void blah(int [][]); % gcc -c -ansi -
pedantic decl.c decl.c:1: warning: array type has incomplete element type %
 dir /B decl.* decl.c decl.o % A conforming implementation _is_ 
allowed to accept the code, so long as it emits the required diagnostic.... - 
 Mon,  Nov 1 2004 4:46 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a8e92dea7e243f02

"..." as a function parameter? - 2 new
----------------------------------
Hello, I have never seen this before. Admittedly, I am not an experienced C 
programmer but there is nothing in my old textbook and searching the web for 
information on three dots didn't get me anywhere because of the way they use 
the ellipses in the search engine databases. Can someone tell me what it is 
and why one would use it? The first and only time I've seen it is deep inside
a PCI software modem driver. Thanks, ejd ... -   Mon,  Nov 1 2004 4:19 
am
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/69139aa9558a18b1

Web Cam, Notification of Broadcast - 4 new
----------------------------------
Does anyone know if there is a notification broadcast, or alternatively a 
message that can be sent to the system, that would inform me that a web 
camera attached to the local computer was in use, or not? Thanks, Ray ... -
  Mon,  Nov 1 2004 5:33 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/26618cb23aca113

help needed with C grep program. About pipes and ls in shell - 4 new
----------------------------------
Hello, I need to program grep (like the one UNIX has but more simple) For 
example if the programs name(the grep I will write) is p3 then if I write in 
shell p3 story.txt word The output should be all lines where the word "word"
appears. The problem is that I am suppose to use this command in shell as 
well ls | p3 word The output should be the lines that the word "word" appears
in with in all files of the directory. My question is what can I do with that?
 I mean ls is not my command its a shell command. What kind of paramters... - 
 Mon,  Nov 1 2004 6:11 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ed53d8227351ae4d

hi - all new
----------------------------------
happy  spoke thus: ... Hello yourself. If this was a test post, in the 
future please direct such posts to alt.test or misc.test. Thanks. ... -   
Mon,  Nov 1 2004 7:39 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ad24b248fee51235

Trouble using string functions - 2 new
----------------------------------
Oops, I spoke too soon! I just tried running this on the latest version, and 
wouldn't you know that one of the lines had a ' in it. Being javascript, it is
escaped with the backslash like: another\'s Given this, it should be a 
fairly easy matter to check for the escape character and ignore the next 
character. Fairly simple for someone else, that is, but I am certainly going 
to try now that I've got something that actually (almost) works like I need it
to. ...... -   Mon,  Nov 1 2004 8:05 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e35bc0ebbb3f46f0

char array initialization: Is 'char a[] = ("a")' valid ANSI C? - 7 new
----------------------------------
 Is the code fragment 'char a[] = ("a");' valid ANSI C? The problematic part 
is '("a")'. I am sure 'char a[] = "a";' is valid ANSI C, but I am more unsure
if it is allowed to place () around the string literal. ... -   Mon,  Nov 1 
2004 8:13 am
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2f5945f014c2cbd0

Newbie,C info needed. - 2 new
----------------------------------
... Neither C nor C++ provide built-in support for GUI programming, graphics, 
sound, networking, file system management, etc. For that, you have to rely on
extensions and libraries provided by either by the platform (the Win32 API) or
on third-party extensions (such as OpenGL). Using these extensions, you can 
use C to write GUI-driven programs (indeed, much WIndows software is developed
with C and C++), and there are numerous books and on-line guides to help you. 
However, developing GUIs in C can be a tedious,... -   Mon,  Nov 1 2004 8:14
am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/64e2f3b8afce9555

Data Recovery Programming Book - 2 new
----------------------------------
Hi! I am glad to introduce World's First Book on Professional Data Recovery 
Programming. Book also Includes a FREE CD, which contains complete Source 
Codes of all the software/Programs described within the book and may 
interesting tools You can see the contents of the book and order Online on 
following link: http://www.DataDoctor.biz/author.htm The Details of the Book
are as follows: Title of the book: "Data Recovery with & without 
Programming" Author of the book: Tarun Tyagi Publishers of the 
book: BPB Publications,... -   Mon,  Nov 1 2004 8:41 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c18de549ce82c9

Confusion with C Part II - all new
----------------------------------
 ... But that's a normal use of array notation, with the subscript in the 
square brackets. The "inverted" usage would be: i["0123456789ABCDEF"] If
"i" is replaced with any sort of more complex expression, though, putting it 
in the square brackets is clearly better, since it saves having to introduce 
parentheses. For example, if we don't want to assume i is in the domain: 
"0123456789ABCDEF"[i & 0xf] versus (i & 0xf)["0123456789ABCDEF"] Of 
course, none of these are likely to come up all that often. (I... -   Mon,  
Nov 1 2004 9:14 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4b902db955c715bb

assert( x > 0.0 && 1 && x == 0.0 ) holding - 3 new
----------------------------------
... Sure you can. As said, the problem was that x86 floating point sucks and 
that gcc is buggy. But even given that, the workaround is simple and works 
fine. The workaround, as said, looks like this: volatile double yvol = (
double)y; volatile double fvol = (double)f(...); assert( yvol >= fvol ); 
The double casts guarantee this to work with any correct compiler. And it also
works with gcc since gcc handles volatiles in a reasonable way. Furthermore 
there is no performance hit to talk about, at least in this... -   Mon,  Nov
1 2004 9:36 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d35b138dec22feed

static structures - 2 new
----------------------------------
 ... Wrong on all counts. Structures with static duration are always 
initialized. If they have an explicit initializer, they're initialized to the
values it contains; if it does not initialize every field of the structure, 
those fields are initialized as follows: - integer types are initialized 
to 0 - floating types are initialized to 0.0 - pointer types are 
initialized to null - union types are initialized according to the type of 
their first ... Structures with static duration, and without an explicit 
initializer,... -   Mon,  Nov 1 2004 9:34 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7fcc91b937f99ab1

Newbee array pointer question - 4 new
----------------------------------
Why ist the following code not working? I want to initialize a string in 
function, but I am getting those STATUS_ACCESS_VIOLATION exceptions. ... 
void init(char* buffer) { buffer = (char*) malloc(6 * sizeof(char)); 
buffer[0] = 'H'; buffer[1] = 'e'; buffer[2] = 'l'; buffer[3] = 'l'; 
buffer[4] = 'o'; buffer[5] = '\0'; ... int main() { char* buffer; 
init(buffer); printf("%s", buffer); ... Any workaround or how to for this?
TIA, Martin ... -   Mon,  Nov 1 2004 9:56 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66b69c0bf72c4e07

'\0' ? - all new
----------------------------------
On Mon, 1 Nov 2004 08:12:48 +0100, ... Delphi really doesn't have much to do 
with C... ... As I understand C, Visual C/C++ 6.0's behavior is conforming to
the standard and not a bug. ... You probably meant: printf("bla: %d", bla());
 As your code stands, you don't actually call the function, the value you're 
seeing is a function pointer. (Standards guys: Right? In that context, it will
always be converted to a function pointer, right? Or maybe not. But in any 
case, it's *not* the return value of the function.)... -   Mon,  Nov 1 2004 
9:23 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9df440927a7ec4a3

Binary files, little&big endian setting bits - 3 new
----------------------------------
On Mon, 01 Nov 2004 08:14:12 GMT ... <snip> ... I think it was originally 
HPIB (Hewlet Packard Interface Bus), then GPIB and IEEE-488 came alone as 
later names for it. I've made plenty of use of it in the past talking to DSO,
DMM... I also did some low level hacking around with it trying to detect if 
kit was connected without crashing the program doing the check or locking up 
the bus. All in HP Pascal. So I have absolutely no trouble remembering it and
know where there is kit still making use of it. :-)... -   Mon,  Nov 1 2004 
9:36 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df8099a70cd0a5a8

String Comparison - 9 new
----------------------------------
Consider: printf("%d", "ABC" == "ABC"); The ANSI standard says that string 
comparsion using a comparison operator (==) is not allowed. It recommends the 
use of the strcmp() in . The Borland compiled programs print "0" on this; 
while the GCC and MS VC++ compiled programs print "1". Which compiler, would 
you say, returns the most appropriate answer, not forgetting what the ANSI 
recommends... ... -   Mon,  Nov 1 2004 10:51 am
9 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5b2fd8d06fea9c80

Usage of scanf to prevent buffer overflow... - 2 new
----------------------------------
You must be careful with one thing if using scanf() - This function considers 
a space character (ASCII-32) as a null character (ASCII-00) and terminates the
string if a space is encountered. I have noticed this behaviour on a old 16-
bit Borland Turbo C 2.0 Compiler. This may not be the case with the newer 
compilers. I always prefer using gets() in the compilers of that era. ... -   
Mon,  Nov 1 2004 10:58 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7eee1b0b5430c4ff

Getting call stack (like dbx where cmd) - 2 new
----------------------------------
... Thanks for the tips Shaun, however you didn't define the function 
"ValidAddress()". -tony ... -   Mon,  Nov 1 2004 11:53 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63a0f8e19d368307

Why C? - 10 new
----------------------------------
Dear friends: ... Mr Tisdale has often been called a troll here. I never 
understood why until I read that sentence. But he is saying the same thing 
that Mr Bode. In another language, yes, but the same thing. By the way, I am
54, and I feel somehow concerned... ... Am I too old to learn anything? In 
any case I hope that Mr Tisdale will have to wait a long time, do not feel 
like leaving right now. The crux of the matter is that I never swallowed the 
object oriented hype. I think that "object oriented" programming is OK in a 
number of applications... -   Mon,  Nov 1 2004 1:44 pm
10 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2501c2e7176dbf

C multi-dimensional arrays and pointers - 4 new
----------------------------------
Hi, Why does gcc (3.3.2) give me a 'initialization from incompatible pointer 
type' warning when compiling: int main(int argc, char** argv) { int testa[2][
2]; int** testp = testa; ... Whereas the following code works without 
warnings: int main(int argc, char** argv) { int testa[2]; int* testp = 
testa; ... I thought that multi-dimensional arrays were implemented as arrays 
of pointers to arrays of pointers? Any insight gratefully appreciated! 
Thanks, Richard Hayden. ... -   Mon,  Nov 1 2004 2:38 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/87f8dda33c6a409d

comparing unsigned long and unsigned int - 3 new
----------------------------------
... unsigned int ui = 0; if(0x0ul <= ui){ printf("less eq\n"); ... On 
my system unsigned long is 64 bits and unsigned int is 32.The compiler gives a
warning warning: comparison is always true due to limited range of data type 
What is happening here? Thanks sridhar ... -   Mon,  Nov 1 2004 3:37 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8da26f3fced58ab5

4-bytes or 8-bytes alignment? - 4 new
----------------------------------
Hi,guys, char s1[10] = "abcde"; char s2[3]; printf("%d",s1-s2); What should 
be the result on a 32-bit machine? It is 8 on my machine, why? Here is the 
output of "uname -a" on my machine: $uname -a SunOS virgo 5.8 Generic_108528-
19 sun4u sparc SUNW,Ultra-250 -- mrby ... -   Mon,  Nov 1 2004 7:19 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2f9b2d6fb000e16e

Game looping problem? - 2 new
----------------------------------
Hello, This game will not loop. It compiles, builds, and executes fine, but 
the game will not loop around no matter what I do. What is wrong with the code?
 What do I have to add to make it loop till the person selects "N" or "n". ..
. int rnd(int range); void seedrnd(void); void main() { int guessme,guess,t;
seedrnd(); guessme=rnd(RANGE)+1; printf(
"GUESS!?!\nGuess the random number.\n"); printf("I'm thinking of a number\ 
between 1 and %i.\n",RANGE); printf("Can you guess it in %i... -   Mon,  
Nov 1 2004 7:34 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/65489e66f17dc78c

Can use macros to solve this problem? - all new
----------------------------------
... Something like this should work: ... T_FUNCTION( firstFunc, ( int a,
int b ), ( a, b ) ) T_FUNCTION( secondFunc, ( float f ), ( f ) )
Add another parameter to vary the return type. ok? ... -   Mon,  Nov 1 2004
8:59 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d10811ec434717

strlen in a for loop with malloc-ed char* - all new
----------------------------------
<snip> ... Chris, So if you want to override any standard library function 
such as strlen/fprintf etc.. then you just write your own function and make it
*static*, and the call is in the same file then the job is done is it ? is it 
portable !? - Ravi ... -   Mon,  Nov 1 2004 9:14 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eb0a87eda9aa95e6

Newbie fgets problem - 3 new
----------------------------------
... int main(int argc, char *argv[]) { FILE *fptr; char* buffer = malloc(20); 
buffer[0] = '1'; if(argc < 2) { fptr = fopen("file.txt", "r"); ... { fptr = 
fopen(argv[1], "r"); ... if(!fptr) { printf("File did not open\n"); return 0;
 ... while(fptr) /* Does not seem to work */ { fgets(buffer, 20, fptr); 
printf("Read string: %s\n", buffer); getchar(); ... return 1; ... Hi, I 
have a problem with the while loop where it checks whether the file pointer 
has reached the end of file. This does not seem to work and the loop executes 
infinitely. What should be... -   Mon,  Nov 1 2004 9:23 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/404a2bcef9324c43

Pro*C Compiler - all new
----------------------------------
Is oracle pro*c dead or obsolete nowadays? Is there any better solution than 
pro*c has been in existence by oracle? I wonder there is no or only a little 
development works for pro*c (very efficient tool yet). Can anybody explain 
this hapenning... Sunil ... -   Mon,  Nov 1 2004 9:43 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aa7354d3c36d254b

how to "new" a two-dimension array in C++? - 2 new
----------------------------------
Hi, I want to directly create a dynamic two-dimension double array, i.e. 
double pp[][]. I found the "new" is only for one-dimension array, i.e. double *
p = new p[dynamic_size]. How to "new" a two-dimension array? Is the only way 
to create a class? In java, I can easily create a two-dimension array by 
"double[][] pp = new double[dynamic_size][dynamic_size]". But, how to do it in
C++? Looking forward to hearing from you! Regards, James ... -   Mon,  
Nov 1 2004 11:14 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8ff15fb67c0eb1f6

 

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

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