-
System Calls
With C how could I use system calls (in Windows) to launch, stop, and restart another program say when my program is done running... like the last line or code, or even if I could do it while my program is still running.
Also if someone could tell me how to delete a file with a C function... in Windows.
-
System Calls
hey man,
is it Turbo C?
u can use system(const char *command);
by this u can run another program from your C program--but it is not the best way.
u have to call interrupt to run system prog and while running your prog.
thanx...
take care...
_________
-
Just C
-
Turbo C is just a compiler and Jackie is right.
-
just C !!??
hey Jperensky,
there is no sentence like 'JUST C(!!??!!??)'.
u r using a editor and compiler and i only want to know about your compiler, cause i am using Turbo C compiler.
thanx...
take care...
_________
MAN IS NOT IMMORTAL...
BUT ART IS IMMORTAL....
_________
jackie.
-
Turbo C
I'm sorry i thought you were asking if I was using a differnt for of c like C# or something... I am using notepad as my editor and Digital Mars compiler as my compiler.... ;)
-
The function system is ANSI C, so if you're compiler is an ANSI compiler, it should support the function.
#include <stdlib.h>
int system(const char *string);
You are using notepad as editor? Why not download a programmer's editor? Take a look at:
http://www.thefreecountry.com/develo.../editors.shtml
There's a lot of free editors there and they're quite good.