EmbLogic's Blog

project

did compression and decompression

Posted in Uncategorized | Leave a comment

PROJECT UPDATE-

Decompression completed,started working on assignment 3.

Posted in Uncategorized | Leave a comment

various functions made

#include
#include
#include

//int debug(const char*,const char*[10],char*);

int say(char*);
int say_num(int*);
int* sum(int*,int*);
int fact(int);
int find_addr();
int back();

int main()
{

printf(“%s -> %p”,__func__,&__func__);

char *b=”hello world”;
char c[]=”humpty dumpty sat on a wall”;
int d[]={1,2,3,4,5,6,7,8,9,0};
printf(“\n%d”,say(b));
printf(“\n%d”,say_num(d));
printf(“\n%d”,*(sum(d+1,d+2)));
printf(“\nfacrorial 5 : %d”,fact(5));
find_addr();
back();
return 0;
}

int say(char* a)
{
printf(“%s -> %p”,__func__,&__func__);

int i=0;
for(;*a;a++,i++) printf(“%c”,i%2?toupper(*a):tolower(*a));
return 0;
}

int say_num(int* a)
{
printf(“%s -> %p”,__func__,&__func__);

int i=0;
for(;*a;a++,i++) printf(“%d”,*a);
return 0;
}

int* sum(int *a,int *b)
{
printf(“%s -> %p”,__func__,&__func__);

int *total=malloc(sizeof(int));
*total=*a+*b;
return total;
}

int fact(int a)
{
printf(“%s -> %p”,__func__,&__func__);

printf(“\nfact() : a = %d”,a);
if(a==0) return 1;
else return (a*fact(a-1));
}

int find_addr()
{
printf(“\n%s():%p,%s”,__func__,&__func__,”inside the address function”);
// debug(__func__,&__func__,”loading….”);
return 0;
}

/*
int debug(const char* fn,const char*[10] addr,char* mesg)
{
printf(“%s() -> %p : %s”,*fn,addr,*mesg);
return 0;
}
*/
int back()
{
char ch;
printf(“enter a char:”);
scanf(“%c”,&ch);
if(ch!=’.’) back();
printf(“%c”,ch);
return 0;
}

Posted in Data Structures with C | Leave a comment

Enjoying Emblogic :)))

Posted in Uncategorized | Leave a comment

Asssignment status

assignment 1 and 2 completed.

looking forward to make notepad like program using FILE I/O

Posted in Data Structures with C | Leave a comment

Project Status

Working on decompression part

Posted in Uncategorized | Leave a comment

did recursive functions and Console i/o file i/o

Posted in Uncategorized | Leave a comment

project status

decompression done

Posted in Uncategorized | Leave a comment

c-program

today i did programs based on console i/o and file i/o….

Posted in Uncategorized | Leave a comment

MDC project status

compressed file and key file created

Posted in Uncategorized | Leave a comment

Another error in toolchain…

Sir,

-lgcc has been solved by changing the version of glibc. but another error occured , i.e. -lc not found… on the execution of a file.

Also facing error in configuring glibc-2.13.

It is exiting with the following error.

.

.

The compiler must support c cleanup handling.

Posted in ARM Embedded Processors, Embedded Controllers, Embedded Linux | Leave a comment

project

doing decompression……

Posted in Uncategorized | Leave a comment

Project

Compression is completed.

Posted in Uncategorized | Leave a comment

Related to standard header files

which command prompt can display all the header files of stdio.h?

Posted in Data Structures with C | Leave a comment

master table is successfully created by RAHUL KUMAR

I have successfully completed the master table.

Rahul Kumar

E-7 , Batch

Posted in Data Structures with C | Leave a comment