Quite simple :
#include <stdio.h>
#include <stdlib.h>
#define TAILLE_CHAINE 1024
int main(int argc, char** argv, char *envp[]) {
Type: Posts; User: Termos
Quite simple :
#include <stdio.h>
#include <stdlib.h>
#define TAILLE_CHAINE 1024
int main(int argc, char** argv, char *envp[]) {
I 've already looked in argv[0] and it does't contain any path. :(
I have the program foo in the directory C:\exe\
From the directory, I do :
C:\loin>C:\exe\foo.exe
I need that toto.exe prints the path of the directory into which it is located (in...