EmbLogic's Blog

Author Archives: Kuldeep Dhanotia

for finding substring into the sentance u can get idea by this program…………

#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

Posted in Data Structures with C, Uncategorized | Leave a comment

how to know the size of our program ………….?

Posted in Data Structures with C | 1 Comment

why array starts with 0 index?

Posted in Uncategorized | 2 Comments

how to know your system is little endian or big endian………..?

ARM processors could work in both modes either little and big endian. In the ARM9TDMI, it works as  “BIGEND” that can be set (0 or 1) for instruction and data fetches…but only affect 16bit or 8bit fetches, while leaving the … Continue reading

Posted in ARM Embedded Processors | 4 Comments

character driver update

some time works both register and unregistered but some time it hangs the system.

Posted in Uncategorized | Leave a comment

character driver

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

Posted in Character Driver | 1 Comment

EOF ignored when we opened file as handler

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

Posted in Data Structures with C | Leave a comment