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

Today's most active topics:

* Code To Make Trial Version Software Release - 11 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ca0f25c303a0851a

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

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

* Call function address stored in type of size_t? - 7 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6d2c8e898569aa31

* "free space" with declared type (alignment discussion) - 7 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ea705eb6ba84f013


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

C call of a C# dll - 9 new
--------------------------
...I meant the dll in the C code. > Such a question might be answered if ...
Nah. After everything I've read in here I don't think that would be a good 
idea. However, I do think that you guys are smart enough to grasp it after 
less than 1000 pages. After all, it's much less complicated than C. ...[
thinking...] - Wed, Dec 22 2004 9:12 am
9 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5e9923bd86ab96f4


"free space" with declared type (alignment discussion) - 7 new
--------------------------------------------------------------
... From the ansi.c (C89) file of Dan Pop: " 4.1.5 Common definitions <stddef.
h> The following types and macros are defined in the standard header <stddef.h>
 . Some are also defined in other headers, as noted in their respective 
sections. " [...] " The macros are NULL which expands to an implementation-
defined null pointer constant; and - Wed, Dec 22 2004 9:21 am
7 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ea705eb6ba84f013


PROS/CONS: #define BEGIN { - 5 new
----------------------------------
...My point was rather that Jarno A Wuolijoki called it a bug which implied (
for me) that the whole thing compiled and the program did some kind of work. 
The "messy" referred to the fact that a different source file was implied. 
This usually happens only if the error occurred in a header file. Thus, the 
header file was not - Wed, Dec 22 2004 9:40 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b40778122b55c18a


Call function address stored in type of size_t? - 7 new
-------------------------------------------------------
...Please don't strip attribution lines for quoted material. Basically you 
devote a complete file to what would be a global procedure/function in Pascal.
Within that you declare all the local functions as static, thus hiding them 
from the rest of the system when linked. You can't nest this sort of thing 
further. - Wed, Dec 22 2004 8:59 am
7 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6d2c8e898569aa31


Code To Make Trial Version Software Release - 11 new
----------------------------------------------------
...You would probably have a use for one of those instruments with long arms (
something like a set of diagonal cutters, but larger) which used to be sold in
the rural farm catalogs under the name 'nutting tool' and were used to convert
bulls into steers. - Wed, Dec 22 2004 8:59 am
11 messages, 10 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ca0f25c303a0851a


scanf problem - 5 new
---------------------
Hi All, Thanks for reading my post! I have a problem that using the scanf 
function. I would like to scan a value from a line like: file:c:\program files\
mpd\mpd.exe however, when I read the value by sscanf(read_buffer,"file:%s",
SRecordFile); I only get "c:\program", I know this is caused by %s only input -
 Wed, Dec 22 2004 2:33 am
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ffc858755a222d10


Error in K&R 2? - 2 new
-----------------------
...that ...DMR just added it to the list of errata. It turns out that the 
original ANSI standard was ambiguous on this point: maximum integer such that 
FLT_RADIX raised to that power minus 1 is a representable.... -Daniel. - Wed, 
Dec 22 2004 2:35 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/28032d01c413107e


Array length - 3 new
--------------------
...But note that this only works when foo is the name of an array with a full 
definition in scope. It doesn't work if foo is a pointer, at least at the top 
level. Specifically this mechanism gets information from the TYPE of foo, it 
doesn't look at the size of actual runtime objects (even with C99 VLAs it is 
still effectively a type thing). So given - Wed, Dec 22 2004 11:15 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/391dcc48193009c1


pointer and array - 6 new
-------------------------
...... ...Looks good to me. ...In the abstract machine yes, after you've put 
the code through an optimiser all bets are off. It is trivially true that if 
two pieces of code have identical behaviour in the abstract machine then a 
compiler can generate identical code for them. Compilers tend to be good at 
optimising - Wed, Dec 22 2004 11:45 am
6 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e4c870ac8a719063


Dynamic C String Question - 6 new
---------------------------------
On Wed, 22 Dec 2004 06:50:35 +0000 (UTC) ...You need to test to see if malloc 
has failed. ...Also, if the realloc fails you have lost your pointer to the 
memory you still have allocated. void foo(char **my_string) { char *tmp = 
realloc(*my_string, 12); if (tmp == NULL) { /* handle error */ } - Wed, Dec 22
2004 11:56 am
6 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9c6dcd4f43190b20


C99 int types (was Re: Question about unpacking a binary file: endian troubles)
 - 1 new
--------
On Tue, 21 Dec 2004 22:18:29 GMT ...Not forgetting the old machines that 
people keep mentioning which have CHAR_BIT == 9 ...Yes, it's wonderful fun. <
OT> Dual port RAM shared between processors with differing endianess can make 
life even more fun. </OT> - Wed, Dec 22 2004 12:04 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/703924ad651c57db


strncat copies junk values .... - 3 new
---------------------------------------
...I've read through this thread and there are a lot of good comments. The one
obvious thing I noticed no one mentioned is a behavior of strncat(). strncat()
will cease copying a string when: 1. It encounters '\0' in the source string. 
2. Or count number of characters have been copied. It is important to note in 
the second case strncpy WILL NOT tack on the - Wed, Dec 22 2004 12:42 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c3f41c30127b5549


threads / malloc / free / global array - 3 new
----------------------------------------------
...I can say that it isn't a strictly conforming program, and more significant
that the behaviour of the program cannot be determined from the C language. I 
can say that something that legitimately calls itself a C compiler can reject 
the program. I might then being to question to what degree the statement that 
the code is "following the standard" is helpful. - Wed, Dec 22 2004 1:04 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/146373d697d992f2


Learning C with Older books ?. - 4 new
--------------------------------------
...... ...In practice people want to produce code that compiles without 
warnings. There may even have to work under policies where this is the case. 
In practical terms having a compilation generate a buch of spuious warnings 
can easily obscure a serious one, and make it more difficult to pinpoint where
the start of the trouble is. - Wed, Dec 22 2004 1:13 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33


Gaussian random number generation in C? - 3 new
-----------------------------------------------
...That must be a very old post you are replying to. :-) ...The actual mean 
you get for 10000 values would of course depend on the random values produced.
However it looks to me that the distribution is symmetrical about 0, so the 
mean of the distribution would be 0. Lawrence - Wed, Dec 22 2004 1:39 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e8860449f02d0a3c


size_t - 1 new
--------------
In article <[EMAIL PROTECTED]>, ...When you 
instruct a newby, is that your starting point to explain what an unsigned int 
is? IMO it is very bad to associate an unsigned int with the mathematical 
integers. You probably wouldn't say that when you were raised on algol68 were 
the similar concept is called - Wed, Dec 22 2004 1:28 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d072a602a9810a17


Why does ANSI not define a function to determine the size of (m)allocated mem?
(like _msize) - 1 new
---------------------
On Sat, 18 Dec 2004 11:54:49 +0000 ...The implementation logically must have 
some internal track of how much space is allocated so that it can: a) Copy the
data on realloc if required. b) Allocate the next block so that it does not 
overlap with what the user requested for the last block on the heap. - Wed, 
Dec 22 2004 1:47 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6e3da9ee177164ac


conditional inclusion - 1 new
-----------------------------
...Very informative. Although the word 'or' is not mentioned, this method 
highlights the difference between inclusive and exclusive 'or'. Carlo - Wed, 
Dec 22 2004 8:33 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7fa4566d02abd2e2


Porting ANSI C code to C# - 5 new
---------------------------------
I've written a large suite of ANSI C routines for a virtual hand-held device. 
A hardware manufacturer with whom we wish to do business prefers C#. My 
understanding of C# is somewhat limited. I see that it is closer to Java and C+
+. What I want to know is this: how difficult would it be to port my ANSI - 
Wed, Dec 22 2004 6:53 am
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/24dcf976d549c571


Sort in the Descending Order - 2 new
------------------------------------
pete wrote: ...That's a bug. Should be "sizeof(void*)" instead of "size" ...
And you never know about ptrdiff_t expressions like (*b++ - k), so I rewrote 
it again: /* BEGIN order.c */ ...struct ptr_index { const void *pointer; size_
t index; ...typedef E_TYPE e_type; void order(const void *key, struct ptr_
index *base, size_t *index, - Wed, Dec 22 2004 3:22 pm
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/48fad044ad9389b9


typedef - 2 new
---------------
...and ...say, ...corrections. ...ISO ...Posted in the bublic domain my 
Merrill Jensen; legal copy. These header files confuse me. I notice the first 
entity is ISO C, which would not be altogether remarkable as it's a remark. I 
just don't get what isn't kosher here. Carlo /*********************************
****************************************** - Wed, Dec 22 2004 9:24 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f2cf2a8a76eb3071


test - 3 new
------------
test - Wed, Dec 22 2004 7:30 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a8a3ee0bc5b3cf13


Interprocess communication: which scenario? [OT] - 1 new
--------------------------------------------------------
...Duly noted. Thanks. - Wed, Dec 22 2004 8:40 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/edc274c3672c58bf


struc problems - 9 new
----------------------
Hi I'm using GCC (and NASM) to send over a asm table... BootDrv db 0 BIOS_Mem_
Map_Entries dd 0 APM_Status db 0 APM_Major_Version db 0 APM_Minor_Version db 0
APM_Code_Base dd 0 APM_Data_Base dd 0 APM_Data_Length dd 0 APM_Code_Length dd 
0 VESA_Struct_Start: - Wed, Dec 22 2004 5:53 pm
9 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/87de91f99681ba36


3D array pointer arithmetic - 1 new
-----------------------------------
...Welcome to the club. If you hang around here long enough you will learn 
that ERT is a notorious provocateur. As is usually the case, his code is: off 
topic in c.l.c (since it's not C) not intended to be helpful to someone 
learning C an exercise in self-congratulation JS - Wed, Dec 22 2004 5:54 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/208fe71928438cdc


Using two different third party softwares ... function multiplpy-defined error
- 3 new
-------
Hello, I am using two third party softwares, cyrus IMAP and UW c-client and 
both of them are defining a function fatal with different signature. Here is 
the error "ld: fatal: symbol `fatal' is multiply-defined: (file SunOS-sparc-5.
8/imapd.o type=FUNC; file /thirdParty/cclient/c-client/libc-client.a(osdep.o) 
type=FUNC);" - Wed, Dec 22 2004 10:28 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b261c0547a504116


Program Design for Large volume file processing - 1 new
-------------------------------------------------------
...1 ...such ...Hi all, Sorry for my late reply, I am posting my message using
Google Groups. Thanks a lot for your valuable inputs to the problem. It 
definitely helped in knowing where to start for solving the problem. I will 
surely inform you about this development effort. Thanks, Soren - Wed, Dec 22 
2004 10:40 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2856961358f8be4


Coding [style] standards - 4 new
--------------------------------
...There is a more compelling reason why this code looks nasty : The <= 
operator is more often than not an indication of problems to come ! Here the 
loop is bogus in these cases : - x signed int and min = INT_MIN (a contorted 
counter example ;-) - x unsigned int or size_t and min = 0 (a very common 
mistake !) - Wed, Dec 22 2004 9:13 pm
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/45fff8e456da3b6e


video editing - 2 new
---------------------
hi, can anybody tell me what are the steps and procedures that are to be taken
for video editing like frame extraction etc from avi,mpeg files using C 
programming. - Wed, Dec 22 2004 12:52 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8a0a7da022599f15


fscanf question - most of line -> null - 4 new
----------------------------------------------
My input line is i1,i2,i3,i4,i5,i6,i7,i8^,...i596,597, ... 14101,14102...NL/CR
very long line of data - I only want the first 8 items and the delimiter 
between 8 & 9 is a carrot "^". The line can end at the 100th item or the 40,
000th item. My code is: char data[500], mynull[800000]; n1 = fscanf (fp, "%[^^]
^%[^\n]\n", &data, mynull); - Wed, Dec 22 2004 2:25 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c7079594ab4e2c97


GCC and asm() - 4 new
---------------------
What's wrong with this: ULONG CPUID_Result=0; asm ("movl $1,%%eax;cpuid;" :"=
a"(CPUID_Result) : //Ingen input! :"%eax","%ebx","%ecx","%edx"); All I want to
do is call CPUID with EAX=1 and have to result stored in CPUID_Result! Once 
again TIA! - Wed, Dec 22 2004 9:31 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/827305d2a2a9268


Over optimization - 3 new
-------------------------
Well I do optimize the function itself. But I don't want to un-optimize the 
loop entirely because that would be unfair on the runtime function, which is 
called directly from within the loop. Although I suppose I could put it in a 
separate compilation unit and just expose it through delegatio - the only 
reason for me not wanting to do that, - Wed, Dec 22 2004 10:58 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6bd7c344f36177cc


Functions taking pointers to different types as arguments - 4 new
-----------------------------------------------------------------
Hello! I'd like to have a variable of a pointer-to-function type. The two 
possible values are of type (*)(FILE *) and (*)(void *). For example: getter =
straight ? fgetc : gzgetc; [...] nextchar = getter(file); What type should I 
give to `getter' so that the compiler does not issue - Wed, Dec 22 2004 6:41 
pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/58f4736f8e17f742


Problem in using gtk_window_set_transient_for() - 2 new
-------------------------------------------------------
Hi, I am using gtk_window_set_transient_for(GtkWindow *win2, GtkWindow *win1) 
to keep one window win2 above another window win1 in my application. I call 
this function just after creating win2 (win1 is already created). When i run 
my application the win1 appears on screen but win2 doesnt appear. And the 
application hangs. Please suggest what should i do? - Thurs, Dec 23 2004 12:50
am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2d94da26d38bf2cf



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

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