Search found 3 matches

by khan001
Fri Feb 11, 2011 2:50 am
Forum: Programming
Topic: need help in this code
Replies: 1
Views: 6501

need help in this code

i want to write a code which determines whether a file is executable or relocatable.....i have try this code but its now working ... #include<stdio.h> #include<elf.h> int main() { int fd; elf32_ehdr myhdr; fd=open("abc.c"); if (myhdr.e_type==ET_RELl) { printf(:relocatable"); if (myhdr...
by khan001
Mon Feb 07, 2011 6:56 pm
Forum: Programming
Topic: relocatable file or executable file?
Replies: 0
Views: 5666

relocatable file or executable file?

i want to write a code which determines whether a file is relocatable file or executable file?
please guide me inthis.if anyone have this code written ....i will be very thankful
by khan001
Mon Feb 07, 2011 3:28 am
Forum: Programming
Topic: size of executable file?
Replies: 1
Views: 6520

size of executable file?

salam everyone. i am new user in linux . i didnt know much about about linux. iwant to use linux for programming .i have knowledge about C language. int myarray[50000]={1,2,3,4}; int main(void){ myarray[0]=3; return 0; } _______________ int myarray[50000]; int main(void){ myarray[0]=3; return 0; } i...