Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
comp . lang . c
This is a Usenet group - learn more
Find or start a Google Group about lang.
Group info
Language: English
Group categories:
Computers > Programming
More group info »
Related Groups
The object-oriented C++ language.
High activity, Usenet
The C programming language. (Moderated)
Low activity, Usenet
Q&A for people programming under Unix.
Medium activity, Usenet
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 139338  Older »
Description: Discussion about C.
 

variable arguments question 
  Hi, I've two questiond regarding variable arguments. First, how to count arguments passed ? I see that va_arg macro can be used, but if don't know type of arguments ? Then, How can a print a % sign with vsnprintf ? Please consider this code: // ...// ...// void myPrintf(char *szText, ...) { char szBuffer[BUFFER_SIZE] = { 0 };... more »
By Alessio  - 13:35 - 2 new of 2 messages    

Mr Ed 
  Why do you post here at comp.lang.c? You show no respect for anybody here and no knowledge of the subject, C. That Heathfield and now Seebach treat you seriously is mystery to me but, of course, their business. You do seem widely read. As if you were locked in a library for several years and had nothing to do but read the books. Not the technical ones it seems, but... more »
By Joe Wright  - 04:44 - 4 new of 4 messages    

Encoding Return Address and Stack Pointer 
  Making the stack area non-executable will not help against stack based buffer overruns, since the return address could be changed to an executable area of memory. A solution could be that the C compiler is setup so that when a function call is made, it is set up to encode the return address placed on the stack with the stack pointer (SP) and possibly some fast... more »
By Casey Hawthorne  - 04:38 - 4 new of 4 messages    

ohmigod I forgot to google for time 
  I have an unusual posting style where I tend to waste the first paragraph of a post. Newsreading requires a news writer, and any writer worth his salt does not approach his topic too quickly. So it is that I might ask for the answer before I have the subject or keywords that might power an internet browser search with some degree of... more »
By frank  - 03:03 - 2 new of 2 messages    

I love relational operators so much 
  C's handling of 'if' leads to a lot of room for obfuscation. All you have to do is replace ';' with '|' for compound expressions and add parentheses as neccessary. if (x) y; else z; becomes ((x)&&(y)) ...for compounds, if (x) y;z;a;b; else c;d;e;f; becomes ((x) && ((y)|(z)|(a)|(b)) ...C is so much fun to obfuscate. Gotta love ISO 9899.... more »
By Andrey Vul  - 01:08 - 5 new of 5 messages    

ternary-free way of implementing max(q,r) 
  Here is a ternary-free way of implementing max(q,r) int max(int q,int r) {return ((q>r)*q)+((q<=r)*r) ;} It works thanks to 6.5.8 . Any comments?
By Andrey Vul  - 7 Nov - 9 new of 9 messages    

Stats for comp.lang.c (last 7 days) 
  ============================== ============================== ================ Analysis of posts to comp.lang.c ============================== ============================== ================ (stats compiled with a script by Garry Knight) Total posts considered: 973 over 7 days... more »
By CLC stats  - 7 Nov - 1 new of 1 message    

&& Suggestion 
  Hi all, Actually there is quite a lot of spam here after all. How about we prefix all our messages with some symbol or other we can all agree to use as I've done here, so meaningful, on-topic posts can be more readily sorted from the rubbish?
By phaedrus  - 7 Nov - 12 new of 12 messages    

Macro preprocessing 
  Hi All, I have a following kind of situation. ...int main(){ ...int a,a_b; a = r(b); ...where I need to construct a symbol ab, at the place where code is executed. A g++ -E test.c, however insert a space between a and b. What could be possible solution for this?
By dhun  - 7 Nov - 2 new of 2 messages    

Linked list question 
  What's the difference between using some like struct node* current as a temporary variable in the following function... int Length(struct node* head) { struct node* current = head; int count = 0; while (current != NULL) { count++; current = current->next; } return count; ...As opposed to not using one in the same function....... more »
By Chad  - 7 Nov - 5 new of 5 messages    

1 - 10 of 139338   « Newer | Older »

XML      
Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google