Since 4/16/2012 6:26:22 AM, websnarf has written 2 articles and participated in 1117 conversations. websnarf signature: websnarf
websnarf's articles:
Items(2) /1
array Puzzle (spoiler)050 (1/23/2005 4:42:26 PM) comp.programming Alf P. Steinbach wrote: > * dtmoore: > > Alf P. Steinbach wrote: > > > * dtmoore: > > > > Alf P. Steinbach wrote: > > > > > * puzzlecracker: > > > > > > Given an array of size n and populated with consecutive >... websnarf
Clunky C cleanup code #2044 (12/2/2004 4:43:34 AM) comp.lang.c fatted wrote: > I've written a function (clean_string) to remove characters from a string, > but it looks clunky to me, and I'm sure there's a more 'C' like way of > doing it (still learning), comments and adv... websnarf
Comparing pointers to NULL6545 (8/7/2009 10:17:09 PM) comp.lang.c Hi, is if(pointer != NULL) ... always exactly equivalent to if(pointer) ... for all pointer types, e.g., int *pointer; ? i.e., can I safely avoid typing "!= NULL" to shorten my NULL- comparisons? Thank... zender(68)
Sixty Four Bit Integer2930 (9/14/2009 11:26:13 PM) comp.lang.c There's a type in Java called that is essentially a 64-bit in- teger. Is there a type in C that is also a 64-bit integer? Or, if there isn't, is there a type by some other name that is a 64- bit integer? --... kvnsmnsn(147)
Change in C6732 (9/16/2009 11:27:10 PM) comp.lang.c In the thread "When will C have an object model?", I found a message from Mr Heathfield that warrants a deeper discussion. That thread was (for a change) an interesting one. Richard Heathfield a �crit : > >... jacob24(973)
Buffer growing strategy?3420 (9/17/2009 7:32:28 AM) comp.lang.c Hi, I'm implementing a buffer that grows automatically when appending or prepending data. To improve performance, I'm looking into a buffer growing strategy to double the memory (or more generally multiply w... jefdriesen(86)
real random13640 (9/20/2009 8:23:30 PM) comp.lang.c Can anyone show me a skeleton code for *real* random numbers? Not just using srand and rand that sometimes depends on the clock. Bill ... nospam116(1187)
Pollard Rho prime factorization327 (2/4/2010 8:36:54 PM) comp.programming Hello Everyone. I am trying to solve a problem on SPOJ (https:// www.spoj.pl/problems/FACT0/)but i am getting time limit exceed.I implemented pollard rho algorithm given on wikipedia.(http:// en.wikipedia.org/w... mukeshtiwari.iiitm(33)
Efficency and the standard library640184 (2/10/2010 7:25:54 PM) comp.lang.c This may have gotten buried given that it started in a Nilges thread, but it's actually pretty interesting. There was some discussion of algorithms to perform the task: Inputs: target string, replacement str... usenet-nospam(2203)
Ask for book for efficient coding in C3534 (2/20/2010 11:02:35 PM) comp.lang.c Hi all, Do you know what book that discusses what we should and should not do in C programming? It is not a book teaching about syntax, etc. but a book teaches us the experience to optimize our code. For exam... mbalover9(23)
Testing if a pointer is valid28382 (9/17/2011 10:29:38 PM) comp.lang.c In a recent discussion about preconditions, I argued that testing ALL preconditions would be unpractical. As an example of a precondition impossible to test I presented the problem to know if a pointer points ... jacob31(871)