these are the errors and warnings quoted by the kernel [root@averma nd1]# make make -C /lib/modules/2.6.38.8/build M=/home/amit/averma/drivers/nd1 modules make[1]: Entering directory `/usr/src/linux-2.6.38.8′ CC [M] /home/amit/averma/drivers/nd1/lk.o /home/amit/averma/drivers/nd1/lk.c: In function ‘scull_open’: /home/amit/averma/drivers/nd1/lk.c:26:68: warning: initialization makes pointer from integer without a cast [enabled … Continue reading
#include #define size 4 int main (void) { int val1=44; int arr[size]; int val2=88; int i; printf(“value1 = %d,value2= %d\n”,val1,val2); for(i=-1;i<=size;i++) arr[i]=2*i+1; printf("value1 =%d,value2=%d\n",val1,val2); for(i=-1;i<7;i++) printf("%2d %d\n",i , arr[i]); printf("value1 =%d,value2=%d\n",val1,val2); printf("value1 =%d,value2=%d\n",val1,val2); return 0; } value1 = 44,value2= 88 … Continue reading
Basic Driver Implemented –By Ovais Fareed (my blog account is not working)
#include #include #include int main() { char buff[10]; char tx[]=”hello wor\n”; int fd[2],t; pid_t pd; printf(“\n %s”,tx); pipe(fd); pd = fork(); if (pd == 0 ) { printf(“\n parent cerated : %d”,getpid()); close(fd[0]); write (fd[1],tx,sizeof(tx)); } else if(pd == 1) … Continue reading
given below is just a program to fetch data from a file with datat: “she sells sea shells on the sea shore” the problem is i need to fetch the characters from the sentence one by on in a manner … Continue reading