[c-prog] Execute Disable Bit

2006-12-01 Thread Pedro Izecksohn
Could you post your results? #include stdio.h #include stdlib.h _Bool xdb () { unsigned int d; __asm__(cpuid:=d(d):a(0x8001):%ebx,%ecx); return ((d0x10)==0x10); } char * code = \xC3; // ret char buffer; int main (int argc, char ** argv) { void (*function)(); char opcode;

[c-prog] Re: Disable printf

2006-12-01 Thread Pedro Izecksohn
--- kldan_ng wrote: I would need to put a #include common.h line into each c file. ... Is there any way to insert the line automatically into each c file? for c in old/*.c ; do cat insert $c new/$c ; done ; You must create new/old/

Re: [c-prog] How to execute DOS command

2006-12-01 Thread rajesh bisht
Use coomand line argument in main. read book Deniss Richie for help how pass command line argument in C. Bye. Rajesh Bisht. Joseph A. Marrero [EMAIL PROTECTED] wrote: Take a look at system(). --- deepak battu wrote: Hi , How can we execute a dos command from the c program.please

[c-prog] Makefiles

2006-12-01 Thread prajyot_neve
Dear Friends, I am writing makefiles on linux. How to call number of makefiles from the main makefile. Please reply as soon as possible. Thanks in advance. Bye

[c-prog] Re: How to execute DOS command

2006-12-01 Thread rampavanck
Hi , How can we execute a dos command from the c program.please provide syntax deepak hi deepak, our frnds already told u that use system() function. nice u must use system() function which is in dos.h header file. i am giving a program on system(). see and try it. but deepak it

[c-prog] how can i save any image in bmp or jpg format using c? plz help

2006-12-01 Thread raj2642
hello friends, i m working on a drawing project i almost completed it but i don't know how to save any image on the screen to file in bitmap, or any compressed file format, please help?

[c-prog] Re: how can i save any image in bmp or jpg format using c? plz help

2006-12-01 Thread Pedro Izecksohn
--- raj2642 wrote: don't know how to save any image on the screen to file in bitmap, or any compressed file format, please help? http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html http://www.jpeg.org/ Yahoo! Search is your friend. I searched: bitmap file format jpeg file

[c-prog] Re:What is the difference between Global and Static variables ?

2006-12-01 Thread Ananth
http://www.google.com/search?q=c++ global static variables

Re: [c-prog] Illegal Struction Operation?

2006-12-01 Thread Ray Devore
--- charlie_chan [EMAIL PROTECTED] wrote: Why is this part of the follow code sample an illegal structure operation? (My intention is to eventually convert the string in the structure to a lower case string that is external to the structure.) struct Indl_dir { char Lname[30];

RE: [c-prog] Re: STL sort help

2006-12-01 Thread Shyan Lam
Reply embedded... -Original Message- From: c-prog@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgearyiii Sent: Wednesday, November 29, 2006 10:00 PM To: c-prog@yahoogroups.com Subject: [c-prog] Re: STL sort help --- In c-prog@yahoogroups.com, Shyan Lam [EMAIL PROTECTED]

[c-prog] Re: how can i save any image in bmp or jpg format using c? plz help

2006-12-01 Thread maheshgkwd
first press the printscreen button then open paint application press paste option.then save that image as bitmap.

Re: [c-prog] Illegal Struction Operation?

2006-12-01 Thread Ray Devore
--- charlie_chan [EMAIL PROTECTED] wrote: uday wrote: Hi Charlie, What is the exact error that you are seeing? I dont find any thing wrong with the offending line. Thanks Uday - Original Message From: charlie_chan [EMAIL PROTECTED] To: c-prog@yahoogroups.com Sent:

Re: [c-prog] What is the difference between Global and Static variables ?

2006-12-01 Thread Ray Devore
--- mail2sheeba_ansari [EMAIL PROTECTED] wrote: What is the difference between Global and Static variables ? A global variable is defined outside of any function. A static variable is declared with the keyword static. You can have global static variables. Ray

[c-prog] Re: What is the difference between Global and Static variables ?

2006-12-01 Thread Pedro Izecksohn
--- Ray Devore wrote: You can have global static variables. It is wrong. The scope of a static variable defined outside any function is only inside that source file. At least I'm not the only guy who writes wrong concepts some times. ;)

[c-prog] Re: What is the difference between Global and Static variables ?

2006-12-01 Thread peternilsson42
Pedro Izecksohn [EMAIL PROTECTED] wrote: --- Ray Devore wrote: [Ray's original context: A global variable is defined outside of any function. A static variable is declared with the keyword static. ] You can have global static variables. It is wrong. Taken out of clear context, of course