EmbLogic's Blog

Author Archives: manoj7410

To run any command on system boot

I found it only 4 fedora 14… just put the command in a file called /etc/rc.local or put in /etc/rc.d/rc.local or write a script in /etc/init.d/ and reboot the system…. that command will work. Still searching a common method for … Continue reading

Posted in Linux Internals and System Programming | Leave a comment

problem with malloc()

if i write while(1) { i=(int *)malloc(sizeof(int)); } here each location will be assigned to i after 16 addresses.  But why…???  o_O

Posted in Data Structures with C | 1 Comment

what does the following code do..??

while((c=getchar())==’\n’); NOTE that there is a semicolon at the end.

Posted in Data Structures with C | 4 Comments

Assignment status

Shell assignment 1,2 complete. C assignment 1,2,3,4 complete. Facing some problem in string manipualtion in one question. Thank you

Posted in Data Structures with C | Leave a comment

what is void * ??

please explain void *

Posted in Uncategorized | 4 Comments

shell assignment completed..

shell assignment 1 is complete..

Posted in Uncategorized | Leave a comment

command for online help…??

what is the command for online help in linux…??  

Posted in Shell Scripts | Leave a comment

Problem using gets??

Facing a problem while I am using gets or fgets in a certain program… first 3 characters are being treated as ”… Please explain this thing… thanx  

Posted in Data Structures with C | Leave a comment

how to use fgets()??

need help to get the exact way of using fgets().  

Posted in Uncategorized | Leave a comment

updates to Siddharth Sir

sir, Assignment 2 completed.

Posted in Data Structures with C | Leave a comment

floats comparision

Can anyone tell me, how to compare two floats…??

Posted in Uncategorized | 1 Comment

updates to sidharth sir…

assignment 1 complete, 2-d array using pointers complete

Posted in Data Structures with C | Leave a comment

update to Sidharth sir: 2nd byte of an int

Sir, now, able to get byte wise values of an int.

Posted in Data Structures with C | Leave a comment

Floating points overflow

Sir, How to check the overflow and underflow of a float.??  

Posted in Data Structures with C | Leave a comment

Pre increment operator

sir, I have some problem in Pre-increment operator for the following expression. i=10; printf(“%d\n”,++i  +  ++i  +  ++i); I am getting un-expected output. it’s answer is 37.. but how??

Posted in Data Structures with C | 3 Comments