Since 4/5/2012 6:54:26 AM, luvraghu has written 10 articles and participated in 5 conversations. luvraghu signature: luvraghu
luvraghu's articles:
Items(10) /1
padding struct535 (7/27/2012 9:52:27 AM) comp.lang.c Hello Experts,
suppose i have a packet of 9 bytes having fields: length(4bytes), type(1 by=
te), version(4bytes). Now i would write the packet structure as=20
struct mypack { =20
unsigned int;
unsigned cha... luvraghu
MACRO help27133 (3/24/2010 2:36:36 AM) comp.lang.c Hi Experts,
Need your help in writing a macro.
1.c
-----------------------------
#include
#define PRINT(x) printf("x = %d\n",x)
int main()
{
int i =9, j=2;
PRINT(i);
PRINT(j);
return 0;
}
---... new
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 ... new
## preprocessing issue724 (8/26/2009 11:09:12 AM) comp.lang.c Hi all, I have the program as below: ---------------------- #include #define FF(x,b) { \ struct ret *t; \ t->##x = b; \ } struct ret { int *a; }; int main() { int y =10,*g; struct ret *s; g =&y; FF(a,g); prin... new
Memory regions444 (5/28/2009 3:06:33 PM) comp.unix.programmer Hi Experts, How can I check the memory regions occupied by the c program in linux gcc compiler ? Any commands? My intention is to check for the variables defined in the program,whether it is in text,data,stack ... new
Checking the Memory regions1483 (5/28/2009 9:13:17 AM) comp.lang.c Hi Experts, How can I check the memory regions occupied by the c program in gcc compiler? Any commands? My intention is to check for the variables defined in the program,whether it is in text,data,stack or heap... new
process vs interrupt levels520 (4/30/2009 8:00:54 AM) comp.lang.c Hi all, How can I differentiate a piece of code which is under process level or an interrupt level ?? Can anyone please explain it with an example? Thanks in advance. Ram ... new
Freeing the allocated block323 (2/13/2009 10:13:16 AM) comp.lang.c Hi all, I need your suggestions/comments on the code snip below. > typedef struct rose { int k; char c; }my_red; boolean fun(my_red **x,int i) { my_red *c=NULL; c= malloc(sizeof(my_red)); if(!c) return FALSE;... new
array declaration128 (5/5/2008 7:25:39 AM) comp.lang.c struct abc { int x; char y; }; struct xyz { struct abc p[0]; //LINE 1 int q; }; int a[0]; //LINE 2 Are the declarations in line 1 and line 2 correct? Please help. Thank you. ... new
help #17 #23035 (1/10/2008 3:39:57 AM) comp.lang.c Hi, Can anyone please give me a hint/logic to divide a number with any number without using '/' '+' '*' '-'. Thank You. Regards, New ... luvraghu
luvraghu's replies:
Items(5) /1
help #17 #23035 (1/10/2008 3:39:57 AM) comp.lang.c Hi, Can anyone please give me a hint/logic to divide a number with any number without using '/' '+' '*' '-'. Thank You. Regards, New ... luvraghu(15)
Freeing the allocated block323 (2/13/2009 10:13:16 AM) comp.lang.c Hi all, I need your suggestions/comments on the code snip below. > typedef struct rose { int k; char c; }my_red; boolean fun(my_red **x,int i) { my_red *c=NULL; c= malloc(sizeof(my_red)); if(!c) return FALSE;... luvraghu(15)
Checking the Memory regions1483 (5/28/2009 9:13:17 AM) comp.lang.c Hi Experts, How can I check the memory regions occupied by the c program in gcc compiler? Any commands? My intention is to check for the variables defined in the program,whether it is in text,data,stack or heap... luvraghu(15)
## preprocessing issue724 (8/26/2009 11:09:12 AM) comp.lang.c Hi all, I have the program as below: ---------------------- #include #define FF(x,b) { \ struct ret *t; \ t->##x = b; \ } struct ret { int *a; }; int main() { int y =10,*g; struct ret *s; g =&y; FF(a,g); prin... luvraghu(15)
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)