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

Today's most active topics:

* Newbie-question: scanf alternatives? - 17 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7a737a53f44215a6

* Problem with DO-WHILE Loop - 7 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ca04bd76119d745a

* malloc and pointer hell - 7 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d62f68addbbb21a

* Out-of-bounds access and UB - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aa60e124041ec9c9

* Malloc/Free - freeing memory allocated by malloc - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c1d9f42a01aa0d5d

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

Out-of-bounds access and UB - 6 new
----------------------------------
Hi there, ... Why is it that I see in my mind people clothed with their best
suits and grave expressions on their faces... *g* Seriously, what a "serious 
programmer" does or does not use daily is not necessarily yours to say. I 
certainly do some serious programming but apart from lists I seldom use 
anything of the above just because I do not need them. ... You know, after 
the usual trouble with pointers, sign errors and stuff like forgotten 
dependencies in old makefiles the next likely source of trouble in my case is 
handling file I/O.... -   Tues,  Sep 21 2004 1:17 am
6 messages, 4 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aa60e124041ec9c9

Malloc/Free - freeing memory allocated by malloc - 6 new
----------------------------------
Thanks everyone for replying, I will definitely "free" after each "malloc". 
Something strange is that after calls to "free", the linked list is still 
accessible, the values are still there. Should I also assign NULL value to 
each node? ...... -   Tues,  Sep 21 2004 1:21 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c1d9f42a01aa0d5d

connect to ftp - 5 new
----------------------------------
hi, i need advice on how to make scp or ftp connection from a windows pc to a
unix server. The program will ask for username and password and then run in 
the background to transfer file at a predefined interval. ... -   Tues,  
Sep 21 2004 1:52 am
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/17a5ad63e53e8337

Pop's Device, was Re: Some Newb Problem with "int", please help. - 5 new
----------------------------------
... I ment the '\n' character. AFAIK Windows for example breaks lines with a 
sequence carriage return + line feed, but maybe this has changed. Kind 
regards, Nicolas... -   Tues,  Sep 21 2004 2:21 am
5 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68cb42fb87cea0db

Problem with DO-WHILE Loop - 7 new
----------------------------------
The problem is of the clearence of the buffer: Now when u enter the choice 
then after that u have to clear the buffer also. As u know that *getchar* 
takes all the input into the buffer and then from there it takes the value
to the allocated mamory. And the *getch* takes the each respective character
and simultaneously stores into the allocated memory. and once it over flows
the memory sapsce a error code is desplayed (this thing u have to handle 
manually) So try to use the getch instead of getchar:... -   Tues,  Sep 
21 2004 2:38 am
7 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ca04bd76119d745a

newbie-question: comments - 5 new
----------------------------------
Hi, Can I comment bigger code-chunks with #if and #if def? I read this - a (
simple;-)) sample would be great. Thanks. Thomas ... -   Tues,  Sep 21 
2004 3:05 am
5 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3f86f8e58946e4ac

malloc and pointer hell - 7 new
----------------------------------
I'm trying to learn how to create arrays dynamically. But its just not 
happening. Have a look at code below and point and laugh where appropriate...
First part of program, I'm using an array of pointers, which seems to go ok. 
I want to then take it one step further and dynamically create the array (
pointers to pointers). I try to print out the data again, retrieve the first 
3 values (probably by luck), then maybe a pointer value, and then a seg fault.
 Doing something wrong, can't see what... ... int main(void)... -   Tues,  
Sep 21 2004 3:17 am
7 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d62f68addbbb21a

great - all new
----------------------------------
Thanks!!! ... -   Tues,  Sep 21 2004 4:09 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ba89d48bd55cc38a

removing a loop from a linked list? - all new
----------------------------------
... I was thinking that it should be either the longest unsigned type, or 
size_t. I believe that malloc is allowed allocate more than SIZE_MAX list 
nodes. The longest unsigned type in C89 is long unsigned. I decided to go 
with size_t. size_t has the potential to be the longest unsigned type, in 
both C89 and C99, though it is not guaranteed to be the longest unsigned type
in either. ... -   Tues,  Sep 21 2004 5:20 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1e1b01c4c3215546

Error ifndef _REENTRANT? - 2 new
----------------------------------
... Maybe. _REENTRANT isn't part of C. ... I think you want a UNIX newsgroup.
... -   Tues,  Sep 21 2004 5:33 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63620de600b89373

Newbie-question: scanf alternatives? - 17 new
----------------------------------
... Don't bother: fgets() is broken by design, too. There is NO alternative 
to scanf() in the standard C library. If you can't be bothered to learn how 
to use scanf() properly, write your own readline() using getc(). Just make 
sure it's better designed than fgets() :-) Dan... -   Tues,  Sep 21 2004 5:
12 am
17 messages, 11 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7a737a53f44215a6

union access - 4 new
----------------------------------
... Please elaborate on the *semantic* similarities between unions and 
structures. No matter how hard I try, I can see only differences... Dan... -
  Tues,  Sep 21 2004 5:59 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ae5339a09d904e21

Dynamically assigning data type - all new
----------------------------------
... That's not really possible. If you've only allocated memory for a certain 
number of chars, however are you going to fit the same number of shorts in 
there? It would mean that sizeof(short) <= sizeof(char), and that is only very
rarely true on desktop computers. (And where it is, of course, sizeof(short) ==
 sizeof(char) == 1, and CHAR_BIT >= 16.) If you know the maximum size of your
elements, going the other way (allocating memory for an array of the largest 
possible data type, and then possibly filling it with a smaller type)... -   
Tues,  Sep 21 2004 8:03 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/da2437735a66a1de

C compling Error on IBM 390 - 6 new
----------------------------------
I have a C program that is complied fine under DOS and UNIX. However, the 
same C program has the following compling error under IBM 390. TIA. -+-1-+-
2-+-3-+-4-+-5-+-6-+-7-+-> 42 |double dot(int n, double a[], double b[
]) ... *=ERROR===========> b - CBC3191 The character
\xbb is not a valid C source char *=ERROR===========> c - CBC3191 The 
character \xba is not a valid C source char *=ERROR===========> d - CBC3191 
The character \xbb is not a valid C source char... -   Tues,  Sep 21 2004 8:
41 am
6 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f9bafc22a957cdbc

Passing and returning arrays to and from functions - 4 new
----------------------------------
... What overflow? ... Or, alternately, store what's been read so far to a
larger (preferably extendable) buffer and repeat the operation until a newline
(or EOF) is seen, then work on the target buffer. ... -   Tues,  Sep 21 2004
9:50 am
4 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/50e357c1706e0d40

Bete Test for MPC Compiler/IDE - all new
----------------------------------
Mohd Zamani wrote on 21/09/04 : ... Confusing. MPC is the name of a family of 
Motorola^H^H^H Freescale microcontrollers based on a PowerPC core (MPC 855, 
MPC 860 etc.) or http://tinylink.com/?zvs4imFoRO ... -   Tues,  Sep 21 
2004 12:25 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5114666378cad465

[OT?] What is (a) "plunger"? - 2 new
----------------------------------
On Fri, 17 Sep 2004 08:32:32 -0400, "P.J. Plauger"  wrote: ... Heh. Similar 
here. All these years I've indicated in my .sig that the 'e' in Kevin is a 
long 'e'. Anybody who knows me knows this. Calls for "my good friend Kevin" 
are sales calls. ... -   Tues,  Sep 21 2004 12:35 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a10a1f005c8f5002

Floating point number to binary - all new
----------------------------------
On 16 Sep 2004 06:32:19 GMT, in comp.lang.c , [EMAIL PROTECTED] ... It 
will almost certainly be pointed out to you by many people that all numbers in
C are already in binary format (unless you're one of the rare people with a 
nonbinary computer). I expect you mean you want to print out the bitpattern 
of a floating point value. Thats not really a C question, its a question about
how to translate the floating point format for your hardware. Once you know,
that, simply iterate over the bits of the number, printing a... -   Tues,  
Sep 21 2004 12:36 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e706d56b01a84359

How to determine available system calls on a Unix/Linux system - 3 new
----------------------------------
On Mon, 20 Sep 2004 22:35:33 GMT, in comp.lang.c , [EMAIL PROTECTED] ... It 
would seem, from the brief exchange I've observed, that you ought to crawl 
back under your rock about now, to avoid having your mind polluted further. 
Thanks for playing.... -   Tues,  Sep 21 2004 12:47 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/21cd3c1aa175c1a4

How to find out if an int has no value - all new
----------------------------------
"Ben Pfaff"  ??? news:[EMAIL PROTECTED] ???... ... Nothing much to 
add, but I would prefer a checksum function to use exclusive-or (xor) to avoid
overflowing int. int point_isInitialized(Point* point) { /** The magic 
number 326475 is chosen to make sure the upper 16 bits are have some ones. */ 
return point->checksum == point->x ^ point->y ^ 326475; ... int point_isEmpty(
Point* point) { return !point_isInitialized(point); ... You may want to have
a smaller checksum as well, coz' currently your... -   Sat,  Sep 18 2004 9:
52 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a20f9e4e4a3adcad

C Program Portability - 3 new
----------------------------------
Anyone can list the difference between Solaris SunOS/Cygwin/Redhat? I know 
SunOS has a byte ordering problem. What else? Are there any website to list 
these difference? What are the constructs to be avoided to write portable C 
program? It maybe OT, coz' it is about system specific details, but because 
it is multiple platform, and it is about C, I think the closest newsgroup is c.
l.c. Maybe this group should discuss issue of wider range, only C standard, or
standard C, is too narrow of any discussion, almost all useful discussion in...
 -   Sun,  Sep 19 2004 1:44 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d51ca9bdab86106c

context switching with setjmp - 2 new
----------------------------------
hi all, cananybody please tell me that why the control transfers to f() and 
then g() and then f() and so on,when longjmp(jbuf[0],1) is called in main. 
Here is the complete code. ... char stack1[4096]; char stack2[4096]; jmp_
buf jbuf[2]; f() { int i=0; while(1){ printf("in f (%d)\n",i++); 
usleep(SECOND); ... g() { int i=0; while(1){ printf("in g (%d)\n",i++);
 usleep(SECOND); ... setup() { sigsetjmp(jbuf[0],1); jbuf[0][0].__
jmpbuf[JB_SP] = (unsigned) stack1 + 4096; jbuf[0][0].__jmpbuf[JB_PC] = (
unsigned) f; ... -   Tues,  Sep 21 2004 8:50 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/faee53b61553cc3b

Two Questions about "strlen", "strcat" and "strcpy" - all new
----------------------------------
On 19 Sep 2004 12:34:58 GMT in comp.lang.c.moderated, "Douglas A. ... It could
also refer to the character before the end of string. ... -   Tues,  Sep 21
2004 10:54 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e9ba0a3a9129c3ba

Unit / Coverage testing - 2 new
----------------------------------
... There are a number of unit testing frameworks made for C, but none is 
particularly dominant. Here are some links: http://check.sourceforge.net/ http:
//cunit.sourceforge.net/ http://sourceforge.net/projects/cut/ Alternatively, 
you can often use a C++ unit test framework and link it together with your C 
source files. This may not be applicable in your situation, but if it is, 
consider some of these: http://cppunit.sourceforge.net/cgi-bin/moin.cgi http:/
/c2.com/cgi/wiki?CppUnitLite http://codesink.org/cutee_unit_testing.html... - 
 Tues,  Sep 21 2004 10:54 pm
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d755bb3dc7f087e7

WinAPI to locate a file in directory - 3 new
----------------------------------
Is there an Windows API using which  could be located ? For example, i want to
search for "tt.exe" under a specific directory recursively. Lakshmi. ... -  
Tues,  Sep 21 2004 11:36 pm
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cdd1dac1e5a1ff23

 

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

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   

Reply via email to