This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Serious ;-): How does Windows pass non-ascii filename to executable?


Hi,

Shaddy Baddah wrote:
..
> executables? Here is the scenario. I have attached a quite simplistic C
> test application.

Guess what I done? Sorry about that. Please find it attached here.

Regards,
Shaddy
#include <stdio.h>

int
main(int argc, char* argv[])
{
  int idx;
  char dummy[1024];
  printf("argc == %d\n", argc);
  for (idx = 0; idx < argc; idx++)
    {
      printf("argv[%d] == \"%s\"\n", idx, argv[idx]);
      printf("strlen(argv[%d]) == \"%d\"\n", idx, strlen(argv[idx]));
    }
  fflush(stdout);
  fgets(dummy, sizeof(dummy), stdin);
  return 0;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]