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

Today's most active topics:

* fseek past the eof - 16 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1b2acc8dfc8dbc12

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

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

* OT: Unix C programming for finding file - 8 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f656fbf7205c815e

* How to understand C FAQ 3.8? - 7 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/605355148cd352ab


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

sizeof error - 1 new
--------------------
In article <[EMAIL PROTECTED]> ...The sizeof operator (yes,
 it is an operator like + or ~) returns the size, in C bytes (which C also 
calls "char"s) [%], of its operand. Here its operand is newp, and sizeof newp 
is the same as sizeof(char *), which is typically four or eight today. - Tues,
Nov 30 2004 8:11 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c20b2ad1672a7be6


struct named 0 - 4 new
----------------------
...In addition to what Jack already wrote, that last statement is plain wrong 
for the simple reason that there is no such list. What the Standard says, in 6.
3.2.3#3, is ...Since a cast to double * definitely (in fact, quite explicitly)
_is_ a conversion to pointer type, it is the very paragraph which defines both
- Tues, Nov 30 2004 8:52 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b7026c716c8ddf97


Are array members guaranteed to be contiguous in physical memory? - 2 new
-------------------------------------------------------------------------
...Right. Completely missed that. Never mind me, I'll be in the corner here 
ingesting more caffeine. Of course _physical_ memory can be written with a 
magic marker on the backs of carrier pigeons for all the Standard cares. 
Equally of course, no C program can find out whether it is or not without 
going seriously into undefined behaviour territory. - Tues, Nov 30 2004 8:55 
am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/33df718bbf14c3b6


What is const char * const *p; - 6 new
--------------------------------------
...Yes. ...You don't, and you can be reasonably but not perfectly sure, 
respectively. That is, if you happen to _know_ that a certain C type must be 
aligned on 32-byte boundaries, then you also know that both all actual objects
of that type are indeed so aligned, and that so is the memory you get from 
malloc() (because that must be correctly aligned for any type, - Tues, Nov 30 
2004 9:19 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/20b6af129c4730cd


OT: Unix C programming for finding file - 8 new
-----------------------------------------------
On Mon, 29 Nov 2004 15:06:55 -0600, Michael Coyne ...<g> It does rather. 
Crucifix is a valid word, however, so crucifixion ("the act of nailing to a 
crucifix") makes some sense. "Connex" is not a valid word (except to UK train 
companies), and I haven't heard anyone actually say "connexion", even those 
who spell it that way seem to - Tues, Nov 30 2004 10:06 am
8 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f656fbf7205c815e


Increasing array size - 5 new
-----------------------------
I am trying to implement a hash-table and I would like to rehash it when it 
starts to fill up. I am implementing the hash-table with an array of linked 
lists. Now for me to increase the size of the hash-table I must create a new 
array twice the size of the one before but the array only accepts an imediate 
number eg array[1000] and will not accept a - Tues, Nov 30 2004 10:50 am
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/156214ee6a21766f


How do you read source for big programs? - 1 new
------------------------------------------------
On Mon, 29 Nov 2004 13:02:00 +0000 (UTC), kj ...This is usual. You should try 
a really large program like GCC if you really want to be confused. ...Read the
documentation, especially the design documentation. If there is any, of course.
 Otherwise, you need to write the design documentation from studying the code (
not necessarily to production - Tues, Nov 30 2004 10:21 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ac7df4d68086f7cd


fseek past the eof - 16 new
---------------------------
On Tue, 30 Nov 2004 07:45:09 GMT, Richard Bos ...I hadn't realised that either.
 It doesn't even say that the behaviour is undefined or implementation defined
(although some implementations of the library do define it, for instance on 
many Unix systems where it allows writes (but not reads) past the end of file 
leaving 'holes'). - Tues, Nov 30 2004 10:55 am
16 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1b2acc8dfc8dbc12


simple file system - 1 new
--------------------------
On Mon, 29 Nov 2004 13:20:43 +0100, dandelion ...All Unices, as far as I am 
aware. The non-portable flag is "t" to force text mode, it was introduced by (
I think) Borland because they had (have?) the ability to globally set the 
default mode so they wanted a way to be able to force the mode both ways. - 
Tues, Nov 30 2004 10:13 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/efcbc57274d6a188


IVT at address 0 - 4 new
------------------------
...like ...*) ...Yes. "NULL != ((void *)" is not the correct way to phrase 
what I had in mind. I intended a situation there the null-pointer is not equal
to all bits zero. Sorry for the confusion (I *did* red the FAQ). ...The 
question *is* academic, since on this platform 0x0000 is the null-pointer, but
i'll ask anyway... - Tues, Nov 30 2004 12:23 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/544cc5168c075195


Calling atexit - 5 new
----------------------
Hi all, The prototype for atexit is 'int atexit(void (*function)(void))'; If I
have a function foo defined as void foo(void) { ...then what is the correct 
way to register the handler - atexit(&foo); // I think this one OR atexit(foo);
 Any references to Standard would be appreciated. Thanks, Sharad - Tues, Nov 
30 2004 3:19 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e119e8782145656


Best way to allocate a large amount of data - 2 new
---------------------------------------------------
I have a program that requires x strings all of y length. x will be in the 
range of 100-10000 whereas the strings will all be < 200 each. This does not 
need to be grown once it has been created. Should I allocate x strings of y 
length or should I allocate a single string x * y long? Which would be more 
efficient and / or portable? - Tues, Nov 30 2004 12:54 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/54cc2f9d4dbb1a21


How to understand C FAQ 3.8? - 7 new
------------------------------------
Hi, I was reading section 3 of the C FAQ: [link] I need more information about
question 3.8: ================== 3.8: How can I understand these complex 
expressions? What's a "sequence point"? A: A sequence point is a point in time
(at the end of the evaluation of a full expression, or at the ||, &&, ?:, or 
comma - Tues, Nov 30 2004 9:52 pm
7 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/605355148cd352ab


Clunky C cleanup code - 12 new
------------------------------
I've written a function (clean_string) to remove characters from a string, but
it looks clunky to me, and I'm sure there's a more 'C' like way of doing it (
still learning), comments and advice welcome... -- ...int main(void) { char * 
clean_string(const char *, const char *); char * string = "\t this is a string
= sausages\n"; - Tues, Nov 30 2004 3:25 pm
12 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/98ef8cb382bd16c2


problem with setjmp - 1 new
---------------------------
...Ok,can you please tell me such a good link or an online reference where I 
can read about setjmp.K&R has a very brief introduction of setjmp and longjmp 
and the same is the case with the man pages. Thanks in advance, Alice - Tues, 
Nov 30 2004 7:09 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a4ea7f0f3168160e


K&r chapter-1; exc-17 - 2 new
-----------------------------
...Into something standard C doesn't allow. I'm too lazy to check whether it's
a syntax rule or constraint violation, but it doesn't make any practical 
difference, anyway. ...Which, from the compiler's point of view, is 
undistinguishable from defining getline() inside main(). ...As I said in my 
previous message, a better bracing style would have made - Tues, Nov 30 2004 3:
32 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d137c89c905b9d97


Learning C with Older books ?. - 6 new
--------------------------------------
...As one of the many who have learned C from K&R without having the slightest
clue about Unix, my only comment to that is: bullshit! ...Your memory is 
faulty: several references to lint in K&R1. lint is made superfluous by 
standard C, so K&R2 naturally ignores it (I suspect there was no lint grokking
standard C code in 1988, anyway). - Tues, Nov 30 2004 4:04 pm
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33


Linux, Sockets and C - 5 new
----------------------------
Hello I got client-server application, client working in linux - server in 
windows, but it doesn't matter. I want keeping connection for long time and 
make reconnections in linux client, for example: when physical connection 
between two machines is broken, client should be still alive, and reconnect to
server when this will be possible. I don't know, how - Tues, Nov 30 2004 5:20 
pm
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3be5c0aa82f568ed


How to add new library in gcc? [OT] - 2 new
-------------------------------------------
you can make a batch file to run ranlib. Then just do (example from a 68k 
embedded board. ar rvs NAMEOFAFILE.a OBJECTFILE1.o OBJECTFILE2.o m68k-coff-
ranlib NAMEOFAFILE.a where NAMEOFAFILE.a is the is the libary you wish to 
produce. OBJECTFILE1.o ext are the names of the object files you wish to add. -
 Tues, Nov 30 2004 8:25 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9e98a2a4c6c0dc17


read url - 15 new
-----------------
Hi all, this is a newbie-question again, but i couldn't find a solution on the
net: I want to open a url (like fopen (" [link]", "r"); ) and copy the file to
a local file (like "copy welcome.jpg A:") How can I open the file? Thanks 
Georg - Tues, Nov 30 2004 5:40 pm
15 messages, 10 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/85ca59e624c9884c


Questions about malloc() - 2 new
--------------------------------
...The nature of the target processor makes quite a lot of difference. 
Compilers have never been competitive on 8-bit CPUs with limited resources (
even when used as cross-compilers and run on platforms with plenty of 
resources). I haven't even heard about a C compiler for the i8048 chip, yet 
I've written many non-trivial embedded control - Tues, Nov 30 2004 4:51 pm
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/82b0dc0981bf3664


can not find graphics.h - 6 new
-------------------------------
Hi there, I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is not 
standard C file. So, can any one help to find where can I get this file on 
MSVC 7.1 or any equivalent file for it. I really appreciate yoru help. Thanks,
- Tues, Nov 30 2004 9:19 am
6 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5a16a7b6099f5c64


Is there a Swap faster than using XOR!!! - 1 new
------------------------------------------------
Raymond Martineau <[EMAIL PROTECTED]> spoke thus: ...Not so; it's always a bad 
idea,
and always dangerous unless the type in question is unsigned char. - Tues, Nov
30 2004 6:54 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b4478c278a5ebed4


Standard Read and Write FILE functions to refer to memory - 4 new
-----------------------------------------------------------------
I have huge number of legacy code which use standard files functions. I would 
like to pass a memory pointer rather than a FILE pointer. I am trying to use 
FILEs in the code to refer to memory buffers. Basically, I want to be able to 
use all the standard read and write functions, but I want them to refer to 
memory locations, rather than - Tues, Nov 30 2004 11:54 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7e9b399435293d65


int86 function... - 4 new
-------------------------
hi with turbo c, it exist a function name int86 whick triggers the serial 
interrupt. i search the same function under linux any idea? thanks - Tues, Nov
30 2004 11:59 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5b4089d11d725cb6


calculator library - 4 new
--------------------------
Hi, Is there a pure C library that emulate a calculator (with +-/* operations,
plus log, sin,cos... functions). I would like to call such a program in a way 
resembling this: result("(4+6)*sin(pi/3)"); Or if the calculator is a reverse 
polish one result("4 6 + pi 3 / sin *"); i.e. a library that makes 
computations according to a human readable - Tues, Nov 30 2004 1:17 pm
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36a5abbf06376db6


Systems software versus applications software definitions - 1 new
-----------------------------------------------------------------
...In which case so are (n)curses text editors, as they use low level terminal
i/o a lot. You definition basicly makes any network app be systems software, 
something that I don't think is a good thing. - Tues, Nov 30 2004 10:45 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3fa8770993ebe026


{OT}Re: Effective Email Marketing - 2 new
-----------------------------------------
...Yes, I agree, but sometimes this stuff just gets over you head. No regrets 
though. - Wed, Dec 1 2004 6:03 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eeeb6b5e43affdb8


abuse of conditional operators (fwd) - 1 new
--------------------------------------------
<OT implementation=gcc> On Wed, 24 Nov 2004 08:35:04 GMT, Bjørn Augestad <b...
@metasystems.no> wrote: ...<snip> ...I have always suspected, but I can't 
prove, it was because it makes C's ?: behave more like the COND form in LISP. 
Whether that is, or would be, a good thing is up to each viewer. I do 
sometimes treat C - Wed, Dec 1 2004 4:48 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f99bd40c0dc203fd


register variable - 1 new
-------------------------
On 19 Nov 2004 15:42:42 GMT, [EMAIL PROTECTED] (Richard Tobin) wrote in 
comp.lang.c; alt.sys.pdp10 added in case I got it wrong: ...In addition to not
being "word" (even) addresses as Dan has noted, they were in the part of the 
address space used for I/O devices, access to which was (for good reason) 
usually prohibited in user mode. - Wed, Dec 1 2004 4:48 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c8ebfc97ce3d1f0d


Good C book - 1 new
-------------------
Hey guys, I have been programming on and off in C for many years now, but I 
seem to forget the format of some function calls/conventions here and there, I
might be working on something that is written entirely in assembly language 
for months.. Come back to do some C and there'll be something here and there -
Wed, Dec 1 2004 6:50 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d158f8d0345a234c



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

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