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

Today's most active topics:

* C call of a C# dll - 15 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5e9923bd86ab96f4

* is NULL-checking redundant in accessor-functions? - 8 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fc3530088eb3edbc

* double variable question - 7 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7a48e26d820ab14

* Functions taking pointers to different types as arguments - 6 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/58f4736f8e17f742

* struc problems - 6 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/87de91f99681ba36


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

asterisk (*) in fprintf - 3 new
-------------------------------
Hi all, I saw the following line in a C source. what's the asterisk * mean? 
Thank you! fprintf(conn_out, "%.*s\r\n", (int)(strlen(buf + 1) - 1), buf + 1);
- Thurs, Dec 23 2004 4:16 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1654719ec6f6d9fc


const keyword usage - 3 new
---------------------------
I am writing software for an embedded application and here is the question. 
GCC would emit data declared like const char text[] = "abc"; to .rodata (i.e. 
"read only data") section. I can put this section to flash memory and that 
would be OK. I have a structure with one member of it being const char** array;
 - Thurs, Dec 23 2004 12:25 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6a3dbeede1e821b


programming pearls :jon bentley - 3 new
---------------------------------------
Does anyone have a soft copy for the book "Programming Pearls by Jon entley" .
Please forward it to me. Thanks, Pradeep. - Thurs, Dec 23 2004 2:17 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9197378f7c7c9e98


Using two different third party softwares ... function multiplpy-defined error
- 2 new
-------
...... ...Another possibility could be to redefine the name in one of the 
packages using a macro. Most compilers allow you to define macros on the 
command line. If you did it that way you wouldn't even have to modify the 
source code, just the build script. Lawrence - Thurs, Dec 23 2004 10:15 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b261c0547a504116


Code To Make Trial Version Software Release - 3 new
---------------------------------------------------
...Meaning that you would need a permanent net connection to use this program,
and probably a gaping hole in your firewall? No way. Not even at work where I _
have_ a permanent connection and a firewall, let alone at home where I'm on 
dial-up. Richard - Thurs, Dec 23 2004 10:20 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ca0f25c303a0851a


struc problems - 6 new
----------------------
...True, although "after the first element of a struct" could be interpreted 
as "only after the first element of the struct", so it is ambiguous. ...This 
is incorrect. A pointer to a struct may be *converted* to a pointer to the 
type of the first member of the struct and the result will be a pointer to the
first member of the struct, and vice versa. This is - Thurs, Dec 23 2004 10:26
am
6 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/87de91f99681ba36


Gaussian random number generation in C? - 2 new
-----------------------------------------------
...... ...Although the standard provides some example code there is no such 
thing as a "vanilla" rand(), each compiler is allowed to implement it how they
like. Looking at the code again I think it mught have a small bias double U1 =
(double)rand() / RAND_MAX; double U2 = (double)rand() / RAND_MAX; - Thurs, Dec
23 2004 10:35 am
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e8860449f02d0a3c


Coding [style] standards - 3 new
--------------------------------
...Well, the <= operator is more commonly associated with upwards loops, which
is perhaps another reason why the form of the test above looks strange. You do
have to be careful about off-by-1 errors however. ...We know there are issues 
using unsigned variables around 0 because you are working close to the 
boundary, and it is easy to just step over it. But - Thurs, Dec 23 2004 11:46 
am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/45fff8e456da3b6e


Dynamic C String Question - 2 new
---------------------------------
infobahn wrote on 23/12/04 : ...A static (hence 'not external') function with 
str* (say strcmp()) will shadow the external strcmp() from the standard 
library. According to the standard, technically correct, but bad practice IMO.
- Thurs, Dec 23 2004 12:49 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9c6dcd4f43190b20


C call of a C# dll - 15 new
---------------------------
...But if they're called shared objects (so's) then that's OK, right? - Thurs,
Dec 23 2004 1:37 pm
15 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5e9923bd86ab96f4


Confiscated and confused - 3 new
--------------------------------
What does *++*argv do? I am going through some confuscated code and this 
didn't make sense to me. I couldn't find any references to using pointers with
incrementors. Thanks. - Thurs, Dec 23 2004 5:52 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f4897f8293f2b1c4


size_t - 1 new
--------------
...Perhaps less formally but it wouldn't be a bad way to start. I doubt 
whether I'd start by wading into the modular properties of unsigned types. ...
There is a very natural association between unsigned integers and counting 
numbers, perhaps even more so than signed integers. ...Maybe a different 
direction to algol68, but not wrong. - Thurs, Dec 23 2004 2:11 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d072a602a9810a17


threads / malloc / free / global array - 1 new
----------------------------------------------
...Because I think you are confusing the language and the programs. Or may be 
that we give a different meaning to the word "library". The language standards
specify a set of rules on how to write code in such a way that compilers in 
different environment can understand it. ...is perfectly legal and adhering to
the standards as long as the objects - Thurs, Dec 23 2004 3:02 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/146373d697d992f2


double variable question - 7 new
--------------------------------
Can some body explain to me this: Consider the following code: int main(int 
argc, char* argv[]) { double d1; d1 = 11.0; d1 -= 1.8; d1 -= 3.0; //HERE THE 
DEBBUGER SHOWS 6.1999999999999993 !!! printf("%f", d1); //THE OUTPUT IS 6.
200000 (ok, we have less digits) getch(); return 0; ...I don't understand it. 
Is it the debuger shows me wrong data, or - Thurs, Dec 23 2004 5:01 pm
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7a48e26d820ab14


argv[] problem - 4 new
----------------------
Hi guys, I made a program in C (command-line) that prints a character the 
number of times indicated by the user. But, when I insert '*' (asterisk) as 
character, it says to me that I've insert more than one character. With '&' (
ampersand), it gives me an error. I have no clue with '*', but I think the 
problem with '&' is related to pointers. - Thurs, Dec 23 2004 7:24 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/90e73dec365f5efd


PROS/CONS: #define BEGIN { - 1 new
----------------------------------
...Why not go all the way, and just program in PASCAL or COBAL? If you don't 
like the language, why use it? Why waste time doing a half-assed job of 
switching to anopther language? I assume you plan on never using any code 
analysis tools, which are likely to barf on the hacked-up syntax. I also 
assume you don't expect any outsiders to ever see your - Thurs, Dec 23 2004 8:
20 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b40778122b55c18a


Porting ANSI C code to C# - 2 new
---------------------------------
...Unless he is thinking of using mono, dotgnu, or another C# implementation .
. . Ian. - Thurs, Dec 23 2004 3:18 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/24dcf976d549c571


Searching the job - 1 new
-------------------------
Good day, dear people! I am searching the job, desirable at home, but of 
course it is not necessarily... I am C/C++/Java developer, have experience 
with Unix (AIX, Solaris, HP-UX, FreeBSD, Linux), Windows 2000. Now living in 
Ukraine, Kiev. Available for relocation. Speak English, Ukrainian, Russian. 
Currently - Thurs, Dec 23 2004 9:29 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9057c2aae4a99e19


Learning C with Older books ?. - 2 new
--------------------------------------
...... ...Never say never. Like goto, avoid it except where it is the best 
tool for the job. A cast looks to me to be the sensible solution here. 1. 
Arithmetic casts aren't particularly dangerous, they don't allow you to do 
things that you can't do with implicit conversions. Contrast that to pointer 
casts which introduce numerous possibilities for undefined - Thurs, Dec 23 
2004 6:16 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33


Functions taking pointers to different types as arguments - 6 new
-----------------------------------------------------------------
... ...The standard definition of qsort() seems to disagree with you here. The
callbacks passed to qsort are expected to take `const void *' arguments and 
cast them internally. Just as these callbacks know the true type of their 
arguments, both fgetc and gzgetc in my example know, what's passed to them -- 
and my program - Thurs, Dec 23 2004 1:24 pm
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/58f4736f8e17f742


is NULL-checking redundant in accessor-functions? - 8 new
---------------------------------------------------------
Hello! Consider the following simple accessor function: 
        typedef struct 
{                 int     i; 
                char    name[32];         } MY_
TYPE;         const char * 
        getName(const MY_TYPE *p)         { - Thurs,
 Dec 23 2004 2:01 pm
8 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fc3530088eb3edbc


using linux static library on windows - 2 new
---------------------------------------------
Okay, quick question... I need to write a wrapper dll, to access a *.a file 
under windows. Is it even possible? - Thurs, Dec 23 2004 11:20 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/789c2b0c78efe3cd


Hows my code - 1 new
--------------------
Try using Crystal REVS for C ( [link] to take care of indentation and 
formatting. Its flowcharts will help you review your code. - Thurs, Dec 23 
2004 11:39 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e526958c41d0f5fc



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

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