sqrtl(), etc. for Cygwin2930 (11/7/2012 6:40:56 PM) comp.lang.c I've been using Cygwin lately, and am largely satisfied.
It has gcc, but lacks sqrtl(), atan2l(), etc.
What's the recommended remedy?
I Googled "source sqrtl" and got to codeforge.com
but only AFTER passi... James
Programming challenge: Combination encoding925 (10/23/2010 7:11:26 AM) comp.programming In comp.compression, in a thread titled "Encode combination efficiently", I pose a programming challenge. Refer to that thread for details, but briefly: Let A and B be large integers (you may assume they're ... James
Reusable source code74304 (9/6/2010 5:48:24 PM) comp.lang.c Jacob's mention of his library reminds me of my own
suggestion to help with software reusability.
Much software has the form
High Level -- application-specific code
Mid Level -- application-specific... James
Questions about random compression729 (6/16/2010 7:07:54 PM) comp.compression This post may say nothing that's not been said in this ng before, but we do have some newcomers who are asking for enlightenment and respect. I will pose five questions. Working on the answers to these five qu... James
Optimization idea: put (y&1) in [] instead of if()1433 (11/4/2009 9:40:45 AM) comp.lang.c Is it OK to discuss C programming in this ng? :-) :-) I just stumbled on an optimization which surprised me, though I'm sure it's "old hat" to many of you. An interest in random-number generation was kind... James
When shorts are longer than longs !18524 (5/12/2009 9:27:02 AM) comp.lang.c I've hardly ever used bitfields, but now have an application where a union of different bitfielded structures seems like the proper solution. For example, union { struct { unsigned long f... James
First Inventor of Programming Method429 (9/16/2008 6:33:51 AM) comp.programming Ever wonder who the very first inventor of some programming method was? John von Neumann is credited with PRNG's and merge-sort among other techniques. Correct? Who invented hash tables? Some inventions ar... James
What does this code do? #22031 (2/6/2008 4:58:24 AM) comp.lang.c How about this idea? Post fragments of C code which seem fun, interesting or instructive. Puzzles can be posed in various ways. (What does this do? Can you see the bug? How to code this for better efficie... James
Compression identical to its inverse?1369 (11/26/2007 7:58:30 AM) comp.compression (This is not a practical comment or question, but just a puzzle that might intrigue. I'd post it to rec.puzzles instead, but readers of this group are more likely to have the requisite background.) Show a com... James
Space-efficient Hash Tables226 (8/20/2007 6:03:51 AM) comp.programming Several recent posts dealt with Hash Tables, but one of the most interesting topics has been ignored: Space efficency. (I realize this topic is irrelevant in many applications, either because the table is smal... James
sqrtl(), etc. for Cygwin2930 (11/7/2012 6:40:56 PM) comp.lang.c I've been using Cygwin lately, and am largely satisfied.
It has gcc, but lacks sqrtl(), atan2l(), etc.
What's the recommended remedy?
I Googled "source sqrtl" and got to codeforge.com
but only AFTER passi... jdallen2000(489)
inline functions #45736 (11/24/2012 12:20:34 PM) comp.lang.c Is there a way of controlling which functions are inlined, or likely to be
inlined, and which ones you never want inlined? Especially with gcc...
(I have a file with over 300 functions, each of which is ca... bc(2211)
Macros #82937 (12/2/2012 5:53:27 PM) comp.lang.c I'm trying out these macros to save on typing and errors** :
#define else } el##se {
That seems to work: 'else' is converted to '} else {'. Somehow the ## stops
the new 'else' from being recursively proc... bc(2211)
Command line arguments13631 (1/10/2013 8:58:16 PM) comp.lang.c I've just discovered that a single command line argument containing
wildcards, such as *.c, is expanded to a full list of matching files before
it gets to main().
That isn't really what I want (and there c... bc(2211)
Reverse of gmtime?3321 (2/5/2013 11:02:16 AM) comp.lang.c The gmtime function in header
converts the calendar time pointed to by some
pointer to time_t into a broken-down time,
expressed as UTC.
Is there a canonical way to do the reverse?
Francois Grieu... fgrieu(251)
How to arrange some numbers13149 (3/15/2013 4:02:03 PM) comp.lang.c Hi, a simple question:
i want to arrange some int numbers; i want to store them
in an array and then print them on the screen.
Look below:
int numbers[10], arranged[10], i;
puts("Insert 10 int... 2970invalid(17)
Why does write() to stdin work?365 (4/23/2013 1:59:59 PM) comp.lang.c Tried the following code under gcc and it writes to stdin??
#include
#include
int main()
{
int k;
for(k= 0; k < 4; k++)
write(k, "Hello world!\n", 13);
}
Any poiners?
-ishwar
... ishwar.rattan(8)
I need your advices about C prg.8013 (4/24/2013 7:30:01 PM) comp.lang.c Hi there!
Firstly, sorry for my bad English :/
I'm only 17 and I want to learn C and write perfect codes in C. I'm not so good in C programming, but I want to become a good C programmer.
My English i... dg282828(7)