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

Today's most active topics:

* address of a statement in C - 19 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9c7bf5671accbcf6

* Count the frequency - 14 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a3d98ffcb4e4d1ba

* Argument Processing - 8 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/deee1550c7aee70

* static cons and static - 8 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36a6bf6e5b6afa3b

* How to create a new directory in C - 6 new
  http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ec05d6e878117cc

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

address of a statement in C - 19 new
----------------------------------
... <snip> ... I have seen some Interrupt handlers that extensively use goto (
most probable due to efficiency). I could not find any other way that would be
faster as compared to goto. For eg. Suppose multiple events may have occurred 
for a particular resource when its ISR is called. In the ISR, all the events 
have to be handled. If some error event occurred no need to handle other 
events, just return from ISR. ... if error event : do some handling. 
goto ISR_DONE <== donts waste time in checking for other... -   Fri, 
Nov 5 2004 1:40 am
19 messages, 7 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9c7bf5671accbcf6

Argument Processing - 8 new
----------------------------------
no problem with the declartion it is fine ... -   Fri,  Nov 5 2004 1:42 am
8 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/deee1550c7aee70

10 limiting display - 2 new
----------------------------------
 ... ... int match(const char *s, ... return c = 0 || strchr(s, c) != 0; .
.. void pause(void) { int c = 0; printf("Press ENTER to continue"); 
fflush(stdout); while((c = getchar()) != '\n' && c != EOF) ... void 
output(const char *s, ... char *p = strrchr(s, '\n'); if(p) ... 
if(lines_per_page && line_num) ... fprintf(fp, "%3lu: %s\n", (unsigned 
long)++line_num, s); ... void select(const char *filename, ... char line[
100] = {0}; FILE *input = fopen("text.txt", "r"); size_t line_num = 0;.
.. -   Fri,  Nov 5 2004 1:46 am
2 messages, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/26431e15de0633b5

Count the frequency - 14 new
----------------------------------
 ... When your dutch/german/french/latin is as good as mine, it's time to 
start correcting me. ... ... -   Fri,  Nov 5 2004 2:04 am
14 messages, 6 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a3d98ffcb4e4d1ba

getch? - 3 new
----------------------------------
... Declarations. But you knew that. :-) -Mike ... -   Fri,  Nov 5 2004 
2:15 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/96f309e1d68b9fc7

Variadic functions - 2 new
----------------------------------
... K&R2, section 7.7, page 156, shows a function definition for minprintf().
It should give you some idea of the logic invlolved. The logic of puts is 
relatively simple. In my toy library, I have put_s like this: ... int put_s(
const char *s) { while (*s != '\0') { ... My min_printf is like this: ...
static int fsput_s(const char *); static int fsput_u(unsigned); static int 
fsput_u_plus_1(unsigned); static int fsput_d(int); int min_printf(const char *
s, ...) { int count, increment; va_list ap; va_start(ap, s);..
. -   Fri,  Nov 5 2004 2:32 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a73dc9832894a6b3

double-linked list elements swap - 4 new
----------------------------------
 ... Then I would question the design. You can allocate a struct to 
encapsulate all your data, and then just swap those struct pointers. For 
example: struct data { /* your fields of data */ ... struct node { 
struct data* i; struct node* p; struct node* n; ... void swap ( struct 
node *a1, struct node *a2 ) { struct data* temp; temp = a1->i; a1->i =
 a2->i; a2->i = temp; ... ... -   Fri,  Nov 5 2004 2:37 am
4 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/95f5fe295433add5

C... Why not c++? - all new
----------------------------------
 ... Yes. ... Improve. ... That's one of the common pitfalls. Point taken. 
However, in my view, OO-design is not a replacement of the traditional methods.
 Structured programming is the foundation Modular programming the first floor
OO-Design the attic. So, if you want to go OO, first become expert in 
structured and modular programming and *use* those techniques. ... It's 
allright. Just don't shout "FIRE!". And frankly i've seen quite a lot of *
very* good C++, which ws easy to follow and modify. And, yes... I've used C++
professionally for... -   Fri,  Nov 5 2004 3:59 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/729e593ab5747942

Seeking Borland C++ 4.5x - 2 new
----------------------------------
 ... You can get CBX personal edition for free which uses the 5.5 compiler (or
supposedly any other compiler that you want) It doesn't do 16 bit but some 
guys at the borland newsgroups are trying to get it to work with bcc. You 
should post at their groups newsgroups.borland.com ... -   Fri,  Nov 5 
2004 4:54 am
2 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6bbf0d70e8d6823c

derangement: coding review request - all new
----------------------------------
... Wait until you read the relevant part of K&R2. Dan... -   Fri,  Nov 5 
2004 5:29 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c5271ccb9149a

How to create a new directory in C - 6 new
----------------------------------
Mike Wahler  spoke thus: ... Whoops... (Well, at least I linked to the FAQ 
and welcome message!) ... Agreed :-) ... -   Fri,  Nov 5 2004 6:18 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ec05d6e878117cc

static cons and static - 8 new
----------------------------------
Hello I am compiling some C code and I have an issue If I declare static 
const short a[2] = (-1, 3) int main(.....) short b; b= a[0] I get -1 b=
a[1] I get 3 If I declare w/o const static short a[2] = (-1, 3) It does not
work any longer ... Sound like the ARM libraries are not initializing these 
data (which compiles OK) ANy idea? Thanks ... -   Fri,  Nov 5 2004 8:14 am
8 messages, 8 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36a6bf6e5b6afa3b

Not STD C is "not C" ? ----WAS: Re: C to Java Byte Code - 3 new
----------------------------------
 ... I'm not sure I understand the distinction. It's not uncommon in RFC 
parlance to consider the user's actions as part of the behavior of the agent, 
if those actions affect aspects of the agent's behavior that fall in the 
domain of the RFC. If I'm using telnet and crafting HTTP/1.1 requests by hand,
 then the requirements of RFC 2616 apply to me, as the "user agent", just as 
they apply to telnet. (That is, both of us are expected to follow the RFC.) .
.. I don't think so either, offhand, though I haven't examined the issue... - 
 Fri,  Nov 5 2004 9:11 am
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4

Convert VB code to C code. - all new
----------------------------------
... Standard C library doesn't have a function comparable to VB's mid(), left(
) and right(). Here is a homegrown C function similar to mid(): /* midstr 
returns a substring of n characters of str starting at s, or remaining 
characters of string if s+n exceeds the length of str. */ char* midstr(char*
 str, int s, int n) { int idx, jdx, len; char* mid; jdx = 0; len = 0;
while(str[jdx++] != '\0') ++len; if(s + n > len) n = len - s; jdx =
 0; mid = malloc(n+1 * sizeof(*mid)); if(mid == NULL)... -   Fri,  Nov 5
2004 9:55 am
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a12d4a4f10e5ab75

Need to talk to a telnet server and send a telnet break - 6 new
----------------------------------
Hi I'm looking for some help or a sample of a socket call to talk to a telnet
server and send a telnet break from a C program. I've looked at the Stevens 
book and tried examples of his daytime code but can't seem to get the text 
from the server to display, much less send a telnet break. Any help is 
appreciated. Jim ... -   Fri,  Nov 5 2004 10:50 am
6 messages, 5 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/823c0ecdd774f51d

assert( x > 0.0 && 1 && x == 0.0 ) holding - 3 new
----------------------------------
... Yes that's what I was asking. The posted program was very helpful, just 
what I was looking for. I'm due for a followup on this. I've gone about 
three rounds of emails with the IEEE-784 folks. The answer is pretty simple 
once it's boiled down. What should happen: what SHOULD happen is that the 
program should work, without any need of casting or any 'volatile' specifiers.
The reason for this is how C99 'double's are handled for assignment and 
function return values. In particular, y = ... some expression ...;... -
  Fri,  Nov 5 2004 11:43 am
3 messages, 2 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d35b138dec22feed

cmsg cancel <[EMAIL PROTECTED]> - all new
----------------------------------
This message was cancelled by Default User Original message header: From:
"Default User"  Subject:Re: Need to talk to a telnet server and send a 
telnet break Date:Fri, 5 Nov 2004 15:17:03 -0600 Newsgroups:comp.lang.c 
Message-ID: ... -   Fri,  Nov 5 2004 1:34 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eb5c0ceb3910892d

hashlib package - 3 new
----------------------------------
... Some of the function typedefs and illustrative definitions could be 
improved by const-qualifying their pointer arguments. Case in point: the 
mycmp() function. The manual says it "will be useful for other things" if it 
goes beyond hashlib's basic true/false contract and instead returns -1,0,+1. 
If the "other things" are meant to imply qsort() and bsearch(), `const' is 
required. The implicit `int' strikes me as a poor idea -- it was, after 
all, outlawed five years ago. And, of course, the qsort()/bsearch()... - 
 Fri,  Nov 5 2004 3:33 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e5f87805e1fd8c3f

Giving the preorder & inorder lists, How can be constructed the - all new
----------------------------------
Is any chance that this list are _named_ in some another names. If not, can 
you explain what is inorder/preorder list are? (I know that you expect answer,
but i post question !:) Thanks, Zaharije Pasalic ... -   Fri,  Nov 5 2004 
4:59 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68744af9e196542d

Puzzle - 3 new
----------------------------------
... The statement of the problem seems ambiguous about whether the output 
should be formed in-place or go to an external array. If it goes to an 
external array, it seems almost trivial: iterate through the input copying the
first of each run, then iterate through the input again copying the rest of 
each run. It's not obvious to me that an in-place version is possible in O(n).
 Is it? Not really appropriate for comp.lang.c, so I've set followups 
appropriately.... -   Fri,  Nov 5 2004 8:00 pm
3 messages, 3 authors
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df4398650d6fa234

Walking a hash table created by hcreate_r()/hsearch_r() ? - all new
----------------------------------
Any one knows how to walk or in other words print all the key/value pairs in 
a hash table created by hcreate_r()? I have added the elements of the hash 
table using the function hsearch_r(). I am not sure how to access all the 
elements. Thank you in advance! Andy ... -   Fri,  Nov 5 2004 9:00 pm
1 message, 1 author
http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df2553fffbcce0ed

 

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

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