FreeRDP
Mac/cli/main.m
1 //
2 // main.m
3 // MacClient2
4 //
5 // Created by BenoĆ®t et Kathy on 2013-05-08.
6 //
7 //
8 
9 #import <Cocoa/Cocoa.h>
10 #include <freerdp/client/cmdline.h>
11 
12 int main(int argc, char *argv[])
13 {
14  freerdp_client_warn_deprecated(argc, argv);
15  for (int i = 0; i < argc; i++)
16  {
17  char *ctemp = argv[i];
18  if (memcmp(ctemp, "/p:", 3) == 0 || memcmp(ctemp, "-p:", 3) == 0)
19  {
20  memset(ctemp + 3, '*', strlen(ctemp) - 3);
21  }
22  }
23 
24  const char **cargv = (const char **)argv;
25  return NSApplicationMain(argc, cargv);
26 }