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

Today's most active topics:

* role of semicolon - 22 new
  
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/51e0bfccfbbc693

* Macros that break compiler headers - 6 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/dddf88911f2ac26f

* how to execute exe files from within a file - 6 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c3e6bda4dff58aec

* Why does ANSI not define a function to determine the size of (m)allocated 
mem? (like _msize) - 5 new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6e3da9ee177164ac

* Is there a library function for placing cursor position in the cosole? - 5 
new
 
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8777a782cb1bc23c


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

1 byte for character - 5 new
----------------------------
...See the other subthread. Keith just states 0 <= CHAR_MAX in a non-
unambigous way. It is true but certainly weaker than 0 < CHAR_MAX. Cheers 
Michael - Fri, Dec 17 2004 9:49 am
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c514917eeed54d1b


Pointer trouble - 4 new
-----------------------
Hi all, I am facing a problem with a library that allocates memory internally.
My basic problem is how to reflect changes in pointer values back in main. My 
library routine allocates dynamically and returns char ** (array of strings). 
To track changes in main I pass a char*** and dereference the passed value in 
foo (this is unsafe, don't know what it's pointing to). - Fri, Dec 17 2004 1:
42 am
4 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a2ba17247d1ae703


Algorithm to break up a vector - 3 new
--------------------------------------
On 9 Dec 2004 12:47:36 -0800, "No Such Luck" <[EMAIL PROTECTED]> wrote: .
..I must be missing something. If N is the number of elements in the vector 
and M is the number of desired subvectors, divide M into N getting the 
quotient and remainder. Let them be q and r. Then r of the M subvectors have 
length q+1 and M-r have length q. Mix them up - Fri, Dec 17 2004 10:03 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1e8cf220c68258af


Sort in the Descending Order - 2 new
------------------------------------
Hello, I use this algorithm to sort an array "v" in the descending order. void
quickSort(float v[], int lo0, int hi0) { int lo = lo0; int hi = hi0; if (lo >=
hi) return; float mid = v[(lo + hi) / 2]; while (lo < hi) { while (lo<hi && v[
lo] > mid) lo++; - Fri, Dec 17 2004 10:05 am
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/48fad044ad9389b9


Macros that break compiler headers - 6 new
------------------------------------------
...As far as I understand, 'local' is only used as an auto variable in the 
compiler's implementation. Thus your two examples would not be a problem, 
right? ...OK. What about ...I imagine /they/ are explicitely forbidden? - Fri,
Dec 17 2004 10:56 am
6 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/dddf88911f2ac26f


populate a pdf form - 1 new
---------------------------
Sam wrote: ...I strongly recommend a language other than C for this task. Your
best bet would be a combination of Python (or Perl or Tcl) and LateX. Python 
can be used to manipulate the LateX text, filling in the form and then run the
LateX code throught the pdflatex program to generate the PDF. Using Python/
Latex, this shouldn't take more than a day to code and - Fri, Dec 17 2004 9:51
pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7d0989f49509dd5c


how to execute exe files from within a file - 6 new
---------------------------------------------------
On 16 Dec 2004 08:17:23 -0800, Casanova ...The only method specified in 
standard C is system(). ...No (it would be in the system library rather than 
in GCC itself, so check about your system libraries). The conventional way to 
do it on Unix is to fork(2) a process which then calls exec(3) to run the - 
Fri, Dec 17 2004 10:46 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c3e6bda4dff58aec


Right way of using setkey(3) and encrypt(3) - 1 new
---------------------------------------------------
...No, the next (long overdue) step is to remove the OT cross-posting to c.l.c.
 F'ups set. - Fri, Dec 17 2004 11:37 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/179ab66f5beda9b


PROS/CONS: #define BEGIN { - 3 new
----------------------------------
On Thu, 16 Dec 2004 17:20:02 -0000, Bart C ...EOL is not necessarily "carriage
return" (I believe some Macs use it, nothing I've ever used). EOL is anything 
the implementation wants external to the C program (including no character at 
all if lines are counted strings) and is represented by the character '\n', 
'newline', in - Fri, Dec 17 2004 11:25 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b40778122b55c18a


2D arrays and malloc - 2 new
----------------------------
Hi all, I found the following malloc/free example on a mailing list and 
immediately thought it was wrong. So, I whipped up the following test program,
compiled it on Linux with gcc and used "-W and -Wall -ansi -pedantic". Gcc did
not complain. I then ran the executable under valgrind (a Linux memory checker
- Fri, Dec 17 2004 11:10 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ac370658c22bd72


threads / malloc / free / global array - 4 new
----------------------------------------------
look at this: ...struct _str *array[10000]; struct _str { int a; char b[1000];
...void t1() { int i=0; for(i=0;i<10000;i++) { array[i] = (struct _str*)malloc(
sizeof(struct _str)); } printf("malloc\n"); pthread_exit(NULL); ...void t2() {
int i = 0; sleep(10); for(i=0;i<10000;i++) free(array[i]); - Fri, Dec 17 2004 
5:03 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/146373d697d992f2


global Variables - 4 new
------------------------
Hi newsgroup, as the subject indicates I am looking for an advice using global
variables. I am not if this problem is more about style then C. If its wrong 
in thi group, sorry. So I have a couple of function that all need the same 
information (all located in the same file). By now it looks like /* file 
beginns */ - Fri, Dec 17 2004 2:39 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/dd3e5ad32322a3f2


How to rescue data on a hard disk? - 4 new
------------------------------------------
Hi all, I've deleted 2 folders and emptied the trash bin on a hard disk in 
Windows XP. And then I found that I've no back-up of these folders. I want to 
rescue the data in these folders. The hard disk with NTFS is connected to the 
PC through USB. Since the deletion I've made no writing on this disk. - Fri, 
Dec 17 2004 5:58 am
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fce398e8589a42d9


role of semicolon - 22 new
--------------------------
...int main(void) { int i = 0; ++ i; ++ i; printf("i equals %d\n", i); return 
0; ...I've been trying to determine the great and manifold uses of the 
semicolon in c. It's not such an easy thing. Q1) Is the above prog conforming?
My compiler likes it just fine. Q2) If so, how many statements are in main? - 
Fri, Dec 17 2004 8:04 am
22 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/51e0bfccfbbc693


re-compile -need helping to enlighten C programming - 1 new
-----------------------------------------------------------
...These include libraries are non-standard. Can't help you there. ...This is 
not valid. The function prototype *must* be int main(). ...As a style issue, 
all-capital identifiers should be used either for macros, or for constant 
variables (depending on the situation.) Using them for non-constants will 
cause confustion. - Fri, Dec 17 2004 11:01 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2be816d1ff98ee7c


Is there a library function for placing cursor position in the cosole? - 5 new
------------------------------------------------------------------------------
...It doesn't matter whether fprintf(stderr, ...) works for an MS Windows GUI 
program. It's a freestanding environment. ...Indeed. - Fri, Dec 17 2004 4:04 
pm
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8777a782cb1bc23c


What is the problem with my arp structure? - 4 new
--------------------------------------------------
Hi, I am trying to define an arp structure but having problem doing so. I 
think I have define the correct arp structure but I find myself in a strange 
problem. The size of structure that I have defined is 28 bytes, but it is 
reported to be 32 bytes by the sizeof() call. Interestingly, sum of 
individuals members of the sturcture is 28. - Fri, Dec 17 2004 8:26 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/881cabfe498811ab


Wierd behaviour of function 'strcspn' - 1 new
---------------------------------------------
Hi all .. I describe here a wierd behaviour .. i dont understand why .. This 
could be very stupid aswell .. so please bear me .. I have been writing a 
program to accept multiple parameters and print them out .. similar to printf (
please Dont ask me why this, when we already have printf .. Because i have 
plans add more power to this - Fri, Dec 17 2004 9:01 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/981f48c40413aba2


Why does ANSI not define a function to determine the size of (m)allocated mem?
(like _msize) - 5 new
---------------------
...... ...That's fine because you're leaving malloc() to handle all alignment 
issues. ...This is problematic because to deal out parts of an allocated area 
you must ensure that each part is correctly aligned. There is no portable way 
of doing this. Lawrence - Fri, Dec 17 2004 5:15 pm
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6e3da9ee177164ac


Learning C with Older books ?. - 2 new
--------------------------------------
...Where in nature does "i > 0" occur? You may prefer it, but it is nothing 
more than a preference. Spare us the bogus claims about what is "natural" C 
syntax. Personally, I'd be just as happy with a plain "i" for the second "for"
expression. I know what it means; any competent C programmer knows what it 
means; someone learning C either knows what it means or needs - Fri, Dec 17 
2004 5:00 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/66bc74d8d8d22b33


berkeley db - 3 new
-------------------
Hi I'm writing multiprocess server which has to gather information from the 
clients and store it to berkeley db. The problem is that BerkeleyDB adds 
entries to the base only if they are added from the same proces within was 
created all is ok. But when I fork() it the code runs without any error, but 
DB adds nothnig :(. How can I solve this problem. - Fri, Dec 17 2004 6:24 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7ac51d68d7e619b1


Redeclaration problem with CC - 5 new
-------------------------------------
...Nick and others have pointed out that there is a C error in the OP's code, 
but I'd like to note that on HP-UX, "cc" is a C compiler, and "CC" is a C++ 
compiler. When you compile with CC, you're compiling C++ code, not C code. C++
is of course off-topic here, and compiling C with a C++ compiler is rarely a 
good idea (claims of some C++ - Fri, Dec 17 2004 5:12 pm
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/28374e3351e669c1


wall clock time - 3 new
-----------------------
...... ...Well chapter 4 is about times and dates. I don't remember offhand if
"wall clock time" is mentioned specifically. It could have been but it isn't a
term that relates specifically to C. I'm sure the indexing could be improved, 
but don't forget the chapter list at the start. I don't see the need to slog 
through 400 pages to find - Fri, Dec 17 2004 7:00 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4f258ab3de215094


Command line C compiler needed - 5 new
--------------------------------------
I need to download Command line C compiler ASAP ? Where can I find the latest 
and moden one ? - Fri, Dec 17 2004 1:21 pm
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/47dc807a6237d819


Request GMAIL Invitation. - 4 new
---------------------------------
Can someone please spare a GMAIL Invitation for me. Thank you for the 
generocity, -.. - Fri, Dec 17 2004 2:13 pm
4 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/419e3af3c4a7ee42


printf padding with alternate character? - 1 new
------------------------------------------------
...Or, even more obnoxiously, simply printing them in red, a practice which 
thankfully went out of fashion when monochrome copiers became prevalent. -
Larry Jones I've got an idea for a sit-com called "Father Knows Zilch." -- 
Calvin - Fri, Dec 17 2004 11:09 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/efff4405b8da5864


The POTM - Programming Contest - Create A Crossword - 1 new
-----------------------------------------------------------
I hope you'll allow me a few moments to tell you about a programming contest 
that may be of interest to you. It's completely for fun, unsponsored, and 
pressure-free. It's called the POTM, and we live at [link] ... The current 
contest, with a deadline at the end of February, involves creating a crossword
puzzle from a supplied wordlist. - Fri, Dec 17 2004 7:28 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/423b48ecf8019880


Can someone please spare a GMAIL Invitation for me. - 2 new
-----------------------------------------------------------
Can someone please spare a GMAIL Invitation for me. Thank you for the 
generocity. - Fri, Dec 17 2004 9:30 pm
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/b95ad6482cb07ca6



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

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