#include <stdio.h> int find_substr(char *listPointer, char *itemPointer); int main(void) { if(find_substr(“C is fun”, “is”) != -1) printf(“Substring is found.”); else printf(“not found”); return 0; } /* Return index of first match of itemPointer in listPointer. */ int find_substr(char *listPointer, char … Continue reading
some time works both register and unregistered but some time it hangs the system.
Could any body try his guts to tell me the algorithm of character driver and the meaning of each function…………….like init,alloc,add etc. My knowledge base about char driver upto registration, of module in 2.6.x kernel
how i can remove my garbage data when i read file with the chunks of four bytes each times, problem is occured at the eof , because it ignored it when we opened file as stream by using handler