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

Today's most active topics:

* How to know the memory pointed by a ptr is freed? - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/86b30ce6a4ba5b2a

* Endianess: why does this code not change value on BE machine? - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/581dedf5e41b1cf6

* opendir doesn't work.. - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cd02031eb90f6ab9

* pwd - 5 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3dfe7ed7e7d985ab

* Reading Simple Flatfiles with a COBOL Mindset - 3 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a5dab07a9f3912dc

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

read files in dir - 2 new
----------------------------------
Hello How can i read what files are in specified directory ? Thanx Michal ...
 -   Sun,  Sep 12 2004 1:03 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2e43d2cc6ec01374

speed of int vs bool for large matrix - all new
----------------------------------
On Sat, 11 Sep 2004 12:30:27 -0000 ... That's not true. It depends on the 
hardware and how the library is implemented. It is entirely conceivable that 
you could solve such a problem to sufficient accuracy on some implementations 
using integer arithmetic and various look up tables, just as I know of lots of
trig being done in SW mainly using integers for speed and only occasionally 
using floating point. However, on most implementations unless you actually 
need floating point (and when discussing the speed of integer... -   Sun,  
Sep 12 2004 1:27 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cb38beb7c98d9c19

How to know the memory pointed by a ptr is freed? - 6 new
----------------------------------
On 17 Aug 2004 02:29:09 -0700, "ravi"  wrote: ... in the borland c 5.3 
compiler *seems* p=malloc(size);  if(p==0 || (p[-1]&0x1) ) printf("not 
allocated") else printf("allocated"); ... -   Sun,  Sep 12 2004 2:
22 am
6 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/86b30ce6a4ba5b2a

Reading Simple Flatfiles with a COBOL Mindset - 3 new
----------------------------------
... I came from a Cobol background to C, after a bit of head-scratching I used
fgets and have never had a reason to do anything else (with character data 
that represents records). I found it useful to ditch the idea of worrying 
about recreating Picture clauses with struct. The main reason for this is that
in the ICL VME enviroment I worked in record lengths were mostly fixed - OK 
there were occurs depending bits on the end sometimes but in the Unix 
environment I have found variable length delimited "records" to be the... -   
Sun,  Sep 12 2004 2:36 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a5dab07a9f3912dc

Performance Programming - 2 new
----------------------------------
On Sat, 11 Sep 2004 16:46:45 GMT, "Kieran Simkin" ... if "yourself" is a 
programm that controll (in debug mode) if there is something out "bounds" I'm 
agree elsewere not ... Why? ... nobody ... -   Sun,  Sep 12 2004 2:55 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/bccd33b9dff2397f

Book Recommendations? - all new
----------------------------------
On Thu, 09 Sep 2004 19:54:39 -0600 ... OK, so I miss-read what you wrote. ...
See above. ... I've also done plenty of hosted work in Pascal that did not 
require dynamic memory allocation, and would not have required it in C. The 
largest amount being a computer (hosted system) controlling test equipment to 
do automatic testing. Due to the way the tests were designed we always knew 
exactly how much data we would be dealing with. as you (correctly) say, it 
all depends on the systems you are designing for.... -   Sun,  Sep 12 2004 2:
51 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aabbf175e3e0d3a1

porting curses driven to gui application - 3 new
----------------------------------
Hi, I'm quite sure if this newsgroup is suitable for my question but I'll 
give it a try. I'd like to port an application of mine which is currently 
just curses driven to a guish one. For now, all users ssh(normal login and 
password) to a linux server and start the app by typing its name on the prompt.
 So they are all starting the same executable on the server. So I don't have 
to bother with any remote database connections. If I'm gonna change to a gui 
app now (e.g. qt), I'm not sure how to handle database requests. For security..
. -   Sun,  Sep 12 2004 4:55 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/53c1001a1d1d3975

Endianess: why does this code not change value on BE machine? - 6 new
----------------------------------
Ok, I've searched this group for Big/Little endian issues, don't kill me, I 
know endianess issues have been discussed a 1000 times. But my question is a 
bit different: I've seen the follwing function several times, it converts 
data stored in Big Endian (BE) format into host native format (LE on LE 
machines, BE on BE machines): /* - this code swaps the bytes on a Little 
Endian Machine ... static short getShortBE (char *data) { ... I can 
understand why this function swaps bytes on a LE machine, but why doesn't it 
alter 'data' on a BE machine?... -   Sun,  Sep 12 2004 5:00 am
6 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/581dedf5e41b1cf6

volatile expression - all new
----------------------------------
... Most definitions are incomplete in one way or another -- check any 
dictionary for numerous examples. That fact that the English definition of 
"expression" in the standard misses the degerate case that's included in the 
formal (BNF) definition doesn't bother me at all; I don't expect that any 
reader will be seriously confused or think that the informal definition 
somehow overrides the formal one. Trying to enhance the current definition to
be more complete strikes me as errant pedantry. -Larry Jones... -   Sun,  
Sep 12 2004 5:11 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36953aa1b62af842

opendir doesn't work.. - 6 new
----------------------------------
Hello, i'm using Gentoo Linux and like to open directories which i got from a 
text file i read of. I tried to open a directory as i wrote the directory 
name directly into "opendir()" and it worked. When i use this pointer on the 
array "input", which contains the actual directory, the program cannot read 
the directory. I already tested if "input" contains the directories at all, 
but it does. ... Any ideas? ... -   Sun,  Sep 12 2004 5:44 am
6 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cd02031eb90f6ab9

Pointer arithmetic involving NULL pointers - 2 new
----------------------------------
... No important compiler is C99 compliant. (C99 is looking more and more like
a dead issue as time goes by, and it's difficult to imagine that 
nonconformance with C99 will ever be a hindrance to a compiler's popularity.) 
The GNU C Compiler is in the happy position of having some of its historical 
extensions codified in C99, so it's partially there with the stated intent of 
full support, IIRC. C89 is very widely supported, and C90 can usually be 
assumed, as well. C89 is what this newsgroup implicitly assumes... -   Sun,  
Sep 12 2004 7:56 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ef9a1260c87b6bfc

pwd - 5 new
----------------------------------
Hello How can i read current working directory in unix (from c program) ? 
Thanx Michal ... -   Sun,  Sep 12 2004 8:48 am
5 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3dfe7ed7e7d985ab

How to convert a double **ptr in a double const ** const ptr? - all new
----------------------------------
* Post for FREE via your newsreader at post.usenet.com * Hi newsgroup, can 
anybody tell me, why the following code snippet won't compile: double **
ptr; double const ** const c_ptr = ptr; I always have to cast it, to let 
it work correctly: double **ptr; double const ** const c_ptr = (
double const ** const) ptr; But it makes me wonder that the following code 
snippet works without a cast, though I am doing "nearly" the same as above: 
double *ptr; double const * const ptr = c_ptr; These lines are perfectly 
accepted by the... -   Sun,  Sep 12 2004 9:44 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/70276bb1b4eba7e1

Church's lambda calculus - 3 new
----------------------------------
 snip Thank you again for replies. To Mr. Barts I apologize for the type of 
inconsideration that makes me furious. I can, in my defense, only claim that 
the theologian Karl Barth is so deeply etched in my mind that my neural 
pathways have hardened too much around that spelling. So we have Scheme for 
linux, LISP for macs, and squat for windows? Mr. Hayes, can a person search
by date or the name who is posting in the forum? Old Wolf, is there 
something about boost lambda that makes it untopical here? I think it says a
hell of a lot about... -   Sun,  Sep 12 2004 12:15 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/210b76dfb4421714

parsing in C - 2 new
----------------------------------
really I don't understand why beginners begin directly by learning yacc or 
lex without having even a small theorie on how does they work. I can't denied 
that they are say a bit easy to understand as to use but beleive me that 
without trying before with a hand coded lexical analyzer or parser you will 
usually get confused. In addition a hand coded lexical analayzer it still runs
quicker than a generated one ! so please before trying to learn yacc and lex 
try first with a hand coded one. Sincerely mac ... -   Sun,  Sep 12 2004
12:33 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e604398031a98a42

linux socket help - all new
----------------------------------
On Sun, 05 Sep 2004 16:12:03 GMT, "Robert Smith"  wrote: ... with standard/
portable C. Try comp.unix.programming or (I think it is) comp.os.linux.
development.apps. But: <snip> ... Think about which fd is which. - David.
Thompson1 at worldnet.att.net ... -   Sun,  Sep 12 2004 8:54 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f34c0792058777e2

simple word wrap problem not wrapping - 2 new
----------------------------------
On Wed, 08 Sep 2004 22:03:36 GMT, Douglas G  wrote: ... ... There is no 
general "right to left" rule and AFAIK it isn't even a common practice. There 
are some things that are ordered -- the && || and comma operators specifically
create what are called "sequence points" which mean that one set of operations
is completed before another, as do complete statements (or declaration 
initializers). Most other subexpressions of an expression can be evaluated 
basically in any order the compiler finds convenient. Note... -   Sun,  Sep 
12 2004 8:54 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b27caad5393ba1ea

file operation - all new
----------------------------------
 ... Each time you call 'fgets()', the 'file pointer' will point to the 
character immediately following a newline ('\n'). So just loop until you've 
called 'fgets()' 'linenum' times. (Checking for errors and end-of-file as you 
go.) unsigned int line_count = 0; while(fgets(buffer, sizeof buffer, fp) 
printf("%u line(s) read\n", ++line_count; -Mike ... -   Sun,  Sep 12 2004
10:48 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/afa8368925636b60

How to make the text stand out - all new
----------------------------------
 ansi protocols do work under linux and unix instead of color use BLACK or 
RED BLACK+30 and so forth... you can use ncurses if you wish. -- Moonie ..
. ... -   Sun,  Sep 12 2004 10:03 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9591f14914140342

Short-Circuit Evaluation of Boolean Expressions - all new
----------------------------------
Hi, I am looking for information on a data structure (and associated 
algorithm) to do short-circuit evaluation of boolean expressions and haven't 
found a single one even after googing for two days! Can anyone point me to 
good resources (or implementations) that do this. Basically is there any way 
to optimize a boolean expression expressed in RPN (reverse polish notation)? 
I want to implement the algorithm/data structure in C. If you have a reference
implementation can you please point me to it. I am sorry if... -   Mon,  Sep
13 2004 12:51 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5bea48391ad3e2c9

 

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

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   



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM
--------------------------------------------------------------------~-> 

<a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/kumpulan/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to