Since 4/25/2012 4:56:34 PM, airia has written 1 articles and participated in 1801 conversations. airia signature: airia
airia's articles:
Items(1) /1
Plain Char #2244 (3/2/2004 10:46:33 AM) comp.lang.c In a post regarding toupper(), Richard Heathfield once asked me to think about what the conversion of a char to unsigned char would mean, and whether it was sensible to actually do so. And pete has raised a dou... Peter
RELATION BETWEEN OPERATORS836 (1/15/2012 9:54:57 AM) comp.lang.c HI FRIENDS,SOMEWHERE i have Seen that Expressions (x%8) and (x&7) in C , are equivalent.. that is if i write a program like int main () { int x=50; printf("%d\n", x%8); printf("%d\n", x&7); return 0... imehta285(3)
C arithmetic question.6054 (1/18/2012 6:32:57 PM) comp.lang.c $cat hunh.c #include int main(void) { long int a = -58; unsigned long int b = 37; a %= b; printf("%ld\n", a); return 0; } $cc -std=c99 -Wall -pedantic -o hunh hunh.c $./hunh 23 ... rubrum(243)
variable length permutation code538 (1/28/2012 9:03:02 PM) comp.lang.c I have code that will take a string and generate the permutations of the string. i.e. the string is abc: abc acb bac bca cab cba What I would like is to modify it so it can produce: a b c ab ac ba bc ca cb a... rhyes80(3)
trigraphs, yecch4633 (1/31/2012 3:55:41 PM) comp.lang.c The other day I wanted to put three successive question marks in a string. Frex, "(???).%s.%s". My trusty antique gcc compiler converted the last two '?'s into a ']' along with a warning that it was doing a ... cri(1432)
Function Prototypes: Necessary or just good practice?1630 (2/14/2012 5:05:50 AM) comp.lang.c In K&R2, function definitions in a program were preceded by a function prototype, i.e.: int my_function(int variable1, int variable2); Then somewhere down the line is the actual definition of the function i... blahbleh6661(3)
multiple token merging in macro expansions424 (4/3/2012 3:23:51 PM) comp.lang.c Hello all, I must have a brain fart as I can't get this to work: #define VAR(A,B) VAR_##A_##B int i=VAR(SOME,THING); I want it to expand to VAR_SOME_THING but actually expands to VAR_A_THING I've seen example... use_the_contact_form(64)
working with big numbers2654 (5/13/2012 3:42:42 PM) comp.lang.c Dear Friends, i need to know how to calculate big numbers i.e. factorial of 100. i google and found a solution but didn`t understand how it is done.and some others solution is using some library .but i actual... ashishmourya21(34)
Checksum in a struct3756 (7/11/2012 2:56:53 PM) comp.lang.c I have a function that computes a 16-bit checksum (following whatever
algorithm) of a memory space:
unsigned int checksum(const void *buffer, size_t size);
I want to embed this checksum in a struct:
... pozzugno(150)