Since 5/7/2012 4:00:47 PM, txr2511 has written 0 articles and participated in 42 conversations. txr2511 signature: txr2511
txr2511's replies:
Items(10) /1
newbie question on understanding the main() function2229 (2/8/2010 1:11:14 AM) comp.lang.c If i write main like the following ways. Which one will compile and why? 1. char * main(); 2. char * main(int, char); 3. char * main(char); I guess only first will(but, all three will flag a warning from the ... s918(28)
usage of size_t24799 (2/21/2010 1:37:35 PM) comp.lang.c Hello, I usually use 'unsigned int' type for variables which hold the length of a buffer. However, someone suggests me to use 'size_t'. So I took a look to the C99 spec and see what it tells about size_t: an... francis.moro(129)
help: gcc compilation difference3232 (2/24/2010 3:02:51 AM) comp.lang.c Hi C Experts, I have the following program: poitr.c ---------------------------------- #include #include int main() { char *s; char p[] = "abcda"; s = malloc(sizeof(char) *256); s[p[0]]++; s[p[2]]++; return ... luvraghu(15)
Any exit status without explicitely using return /exit2432 (2/24/2010 8:27:04 AM) comp.lang.c This actually bugging me from quite sometime now.The question is like this : How to set the the exit status of a program to any value without explicitly using return/exit in gcc ? Let us consider this piece of... debanjan4you(25)
Stylistic questions on UNIX C coding.352110 (2/24/2010 6:35:06 PM) comp.unix.programmer Hi, I've a few questions concerning style when programming C on UNIX systems. I don't want to look like an amateur. :) 1. Having been programming in higher level languages for the last 15 years, I'm finding... postermatt(37)
Access to common field in structs4425 (2/26/2010 4:54:46 PM) comp.lang.c Hi, I have many structs, and it would be very helpful if I could read and write to common initial sequence of them. I know I can use union of structs to read common initial sequence, but I'm not sure about writ... dmz1(6)
initialize for a 2-D dynamic array.2637 (2/28/2010 7:25:14 AM) comp.lang.c HI all, I want to create a 2D dynamic array and then initialize all elements with 0. I did a search and found: 1. array = (** unsigned char) calloc(NROW, sizeof(unsigned char*)); 2. for(i = 0; i < NROW ; ... mbalover9(23)
What scope are struct members in?2025 (3/11/2011 10:13:05 PM) comp.lang.c The C spec says " An identifier can denote an object; a function; a tag or a member of a structure, union, or enumeration; a typedef name; a label name; a macro name; or a macro parameter. The same identifi... schaub.johannes(56)
Exercise 1-8 of the C programming language1023 (8/13/2011 6:10:06 AM) comp.lang.c Is there any way to write this code without an else if? If so how..and can you explain it line by line please :/ I'm really new to C or programming. #include /* count blanks, tabs and newlines in input */ ma... josephsantoyo(7)