Type safety1830 (2/24/2006 5:20:28 PM) comp.lang.c In the article http://en.wikipedia.org/wiki/Type_safety it is written as The archetypal type-unsafe language is C because (for example) it is possible for an integer to be viewed as a function pointer, wh... aarklon(253)
malloc behavior on failure1221 (2/28/2006 12:38:01 AM) comp.lang.c I originally posted the following code in a group discussing threads but after further research I think I have a c question about the code. I know there are a couple of non standard c includes here and the POSI... gooch001(85)
Square root of a number.3232 (3/1/2006 4:24:15 AM) comp.lang.c Hi! Could anyone tell me how to find the square root of a number without using the sqrt function. I did it by using Newton's Formula. How can it be done by using the Binomial Theorem/Taylor Series? Is there an... priyam.trivedi(4)
'restrict' in plain English?1221 (3/6/2006 1:30:37 AM) comp.lang.c I'm trying to wrap my head around the wording but from what I think the standard says: 1. it's impossible to swap a restrict pointer with another pointer, i.e. int a = 1, b = 2; int * restrict ap = &a; int * ... anti_spam_email2003(129)
Making Fatal Hidden Assumptions25241 (3/6/2006 11:05:49 PM) comp.programming We often find hidden, and totally unnecessary, assumptions being made in code. The following leans heavily on one particular example, which happens to be in C. However similar things can (and do) occur in any... cbfalconer(19183)
memory use global vs auto534 (3/10/2006 7:53:24 PM) comp.lang.c I have the following code: void foo(void) { const int array[100] = ....; // do stuff with array } I mostly use code like this so my program doesnt waste memory because array only gets allocated when f... la1(5)
Implementation of functions in math.h on clc-wiki11037 (3/11/2006 9:17:45 PM) comp.lang.c I'm writing a portable implementation of the C standard library for http://www.clc-wiki.net and I was wondering if someone could check the functions in math.h for sanity/portability/whatever. I'm almost halfway... GKP1(83)