Since 4/14/2012 2:25:01 AM, pfiland has written 3 articles and participated in 6610 conversations. pfiland signature: pfiland
My latest magnum opus!1649 (9/1/2011 11:24:26 PM) comp.lang.c /* BEGIN block_swap_test.c */ /* ** block_swap swaps two contiguous subobjects. ** (base) is the address of the lower addressed subobject. ** (lo_size) is the size of the lower addressed subobject. ** (hi_size)... pete
Arithmetic properties of HUGE_VAL and errno1156 (10/1/2005 4:29:29 AM) comp.lang.c On my system, the following five expressions are true: (HUGE_VAL == HUGE_VAL / 2) (1 / HUGE_VAL == 0) (sqrt(HUGE_VAL) == HUGE_VAL) (sqrt(-1) == HUGE_VAL) (sqrt(-HUGE_VAL) == HUGE_VAL) and sqrt(HUGE_VAL) does... pete
itoa in pure C2956 (1/25/2004 2:25:44 PM) comp.lang.c I wrote a version of itoa yesterday. Features: 1 No implementation defined arithmetic. All of the division and modulus division is done on positive values only. 2 No object is assumed capable of r... pete
Taking a stab at getline4418 (2/7/2013 12:42:12 PM) comp.lang.c Hello group,
Here's my attempt at writing a "get_line" implementation, which
reads an entire line from a file stream, dynamically allocating
the space needed to store said line.
Since this is for my own... Noob
Comma inside if statement in C2325 (2/14/2013 6:41:21 PM) comp.lang.c Well yesterday I came across a strange behaviour of C program i.e.
let suppose we have three integers
int a=5, b=6, c=7;
if(c>b , b>a)
printf("C is greater %d",c);
this if statment is working,... asad.w.malik(2)
IF-free conception.14637 (2/15/2013 8:51:47 PM) comp.lang.c Good Time to all, Amici(Friends).
Here, i'd like to discuss how to reduce conditional branches in the code. 1st of the all, i would like to share some tricks. Their description is here (http://alg0z.blogspot... z0dchiy8(45)
Problem with "restrict"3925 (3/9/2013 11:11:30 PM) comp.lang.c Hello all!
I am trying to learn to use the reserved word restrict. However, it seems that it is not working. The code with and without that keyword have the same size and running time, even though I am induc... diegotorquemada1(81)
Pointers #202815 (3/13/2013 1:57:16 AM) comp.lang.c Hi, I have started programming in C recently and started learning about poi=
nters. Insofar, all the material has been easy to digest and understand. Bu=
t pointers are really giving me a hard time! I've read... j.wagner1024(6)
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.
int numbers, arranged, i;
puts("Insert 10 int... 2970invalid(17)
pointer question #112327 (3/16/2013 11:41:20 PM) comp.lang.c I want to take a value stored in an int use a pointer to move it to
another int variable using a int **. Would this be the right or a usable
technique? I know how of course to use a pointer to an int to... nospam116(1187)
example C code413 (3/25/2013 4:04:39 PM) comp.lang.c I want to read example C code to improve my programming skill. Can anyone
point me to a book or web site where I can find good example C code? Thanks.
--- news://freenews.netfront.... time5556(7)